about summary refs log tree commit diff
path: root/src/etc/test-float-parse/subnorm.rs
blob: ba68d31e4ed7e853979dd724ad9aa73f607226dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod _common;

use _common::validate;
use std::mem::transmute;

fn main() {
    for bits in 0u32..(1 << 21) {
        let single: f32 = unsafe { transmute(bits) };
        validate(&format!("{:e}", single));
        let double: f64 = unsafe { transmute(bits as u64) };
        validate(&format!("{:e}", double));
    }
}