1*5f32b710SXin Li #include <cstdint> 2*5f32b710SXin Li 3*5f32b710SXin Li 4*5f32b710SXin Li namespace fp16 { 5*5f32b710SXin Li /* FP32 conversion results for FP16 numbers in range [1.0h, 2.0h) */ 6*5f32b710SXin Li extern const uint32_t normalizedValues[1024]; 7*5f32b710SXin Li /* FP32 conversion results for FP16 numbers in range [0.0h, HALF_MIN) */ 8*5f32b710SXin Li extern const uint32_t denormalizedValues[1024]; 9*5f32b710SXin Li /* FP32 numbers such that FP16(fp32) < as_half(as_uint16(1.0h) | index) for fp32 < normalizedRanges[index] */ 10*5f32b710SXin Li extern const uint32_t normalizedRanges[1024]; 11*5f32b710SXin Li /* FP32 numbers such that FP16(fp32) < as_half(index) for fp32 < denormalizedRanges[index] */ 12*5f32b710SXin Li extern const uint32_t denormalizedRanges[1024]; 13*5f32b710SXin Li } 14