Home
last modified time | relevance | path

Searched refs:flt_e (Results 1 – 3 of 3) sorted by relevance

/external/igt-gpu-tools/lib/
Digt_halffloat.c55 const int flt_e = (fi.i >> 23) & 0xff; in _float_to_half() local
64 if ((flt_e == 0) && (flt_m == 0)) { in _float_to_half()
68 } else if ((flt_e == 0) && (flt_m != 0)) { in _float_to_half()
72 } else if ((flt_e == 0xff) && (flt_m == 0)) { in _float_to_half()
76 } else if ((flt_e == 0xff) && (flt_m != 0)) { in _float_to_half()
82 const int new_exp = flt_e - 127; in _float_to_half()
130 int flt_m, flt_e, flt_s; in _half_to_float() local
140 flt_e = 0; in _half_to_float()
149 flt_e = 0xff; in _half_to_float()
153 flt_e = 0xff; in _half_to_float()
[all …]
/external/mesa3d/src/util/
Dhalf_float.c61 const int flt_e = (fi.i >> 23) & 0xff; in _mesa_float_to_half_slow() local
70 if ((flt_e == 0) && (flt_m == 0)) { in _mesa_float_to_half_slow()
75 else if ((flt_e == 0) && (flt_m != 0)) { in _mesa_float_to_half_slow()
80 else if ((flt_e == 0xff) && (flt_m == 0)) { in _mesa_float_to_half_slow()
85 else if ((flt_e == 0xff) && (flt_m != 0)) { in _mesa_float_to_half_slow()
92 const int new_exp = flt_e - 127; in _mesa_float_to_half_slow()
Dsoftfloat.c1388 uint64_t flt_e = (di.u >> 52) & 0x7ff; in _mesa_double_to_f32() local
1394 if (flt_e == 0x7ff) { in _mesa_double_to_f32()
1411 if (!(flt_e | flt_m)) { in _mesa_double_to_f32()
1420 if ( ! (flt_e | m) ) { in _mesa_double_to_f32()
1428 return _mesa_round_f32(s, flt_e - 0x381, m | 0x40000000, rtz); in _mesa_double_to_f32()
1442 const uint32_t flt_e = (fi.u >> 23) & 0xff; in _mesa_float_to_half_rtz_slow() local
1448 if (flt_e == 0xff) { in _mesa_float_to_half_rtz_slow()
1461 if (!(flt_e | flt_m)) { in _mesa_float_to_half_rtz_slow()
1468 if ( ! (flt_e | m) ) { in _mesa_float_to_half_rtz_slow()
1474 return _mesa_roundtozero_f16(s, flt_e - 0x71, m | 0x4000); in _mesa_float_to_half_rtz_slow()