• Home
  • Raw
  • Download

Lines Matching refs:UINT32_C

45 	const uint32_t sign = w & UINT32_C(0x80000000);  in fp16_ieee_to_fp32_bits()
54 const uint32_t nonsign = w & UINT32_C(0x7FFFFFFF); in fp16_ieee_to_fp32_bits()
127 const uint32_t sign = w & UINT32_C(0x80000000); in fp16_ieee_to_fp32_value()
164 const uint32_t exp_offset = UINT32_C(0xE0) << 23; in fp16_ieee_to_fp32_value()
168 const float exp_scale = fp32_from_bits(UINT32_C(0x7800000)); in fp16_ieee_to_fp32_value()
200 const uint32_t magic_mask = UINT32_C(126) << 23; in fp16_ieee_to_fp32_value()
210 const uint32_t denormalized_cutoff = UINT32_C(1) << 27; in fp16_ieee_to_fp32_value()
228 const float scale_to_inf = fp32_from_bits(UINT32_C(0x77800000)); in fp16_ieee_from_fp32_value()
229 const float scale_to_zero = fp32_from_bits(UINT32_C(0x08800000)); in fp16_ieee_from_fp32_value()
235 const uint32_t sign = w & UINT32_C(0x80000000); in fp16_ieee_from_fp32_value()
236 uint32_t bias = shl1_w & UINT32_C(0xFF000000); in fp16_ieee_from_fp32_value()
237 if (bias < UINT32_C(0x71000000)) { in fp16_ieee_from_fp32_value()
238 bias = UINT32_C(0x71000000); in fp16_ieee_from_fp32_value()
241 base = fp32_from_bits((bias >> 1) + UINT32_C(0x07800000)) + base; in fp16_ieee_from_fp32_value()
243 const uint32_t exp_bits = (bits >> 13) & UINT32_C(0x00007C00); in fp16_ieee_from_fp32_value()
244 const uint32_t mantissa_bits = bits & UINT32_C(0x00000FFF); in fp16_ieee_from_fp32_value()
246 return (sign >> 16) | (shl1_w > UINT32_C(0xFF000000) ? UINT16_C(0x7E00) : nonsign); in fp16_ieee_from_fp32_value()
274 const uint32_t sign = w & UINT32_C(0x80000000); in fp16_alt_to_fp32_bits()
283 const uint32_t nonsign = w & UINT32_C(0x7FFFFFFF); in fp16_alt_to_fp32_bits()
347 const uint32_t sign = w & UINT32_C(0x80000000); in fp16_alt_to_fp32_value()
376 const uint32_t exp_offset = UINT32_C(0x70) << 23; in fp16_alt_to_fp32_value()
407 const uint32_t magic_mask = UINT32_C(126) << 23; in fp16_alt_to_fp32_value()
417 const uint32_t denormalized_cutoff = UINT32_C(1) << 27; in fp16_alt_to_fp32_value()
432 const uint32_t sign = w & UINT32_C(0x80000000); in fp16_alt_from_fp32_value()
435 const uint32_t shl1_max_fp16_fp32 = UINT32_C(0x8FFFC000); in fp16_alt_from_fp32_value()
437 uint32_t shl1_bias = shl1_base & UINT32_C(0xFF000000); in fp16_alt_from_fp32_value()
448 …return (sign >> 16) | ((exp_f & UINT32_C(0x00007C00)) + (fp32_to_bits(base) & UINT32_C(0x00000FFF)… in fp16_alt_from_fp32_value()