Home
last modified time | relevance | path

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

/external/igt-gpu-tools/lib/
Digt_halffloat.c54 const int flt_m = fi.i & 0x7fffff; 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()
101 m = lrintf(flt_m / (float)(1 << 13)); in _float_to_half()
130 int flt_m, flt_e, flt_s; in _half_to_float() local
139 flt_m = 0; in _half_to_float()
150 flt_m = 0; in _half_to_float()
154 flt_m = 1; in _half_to_float()
[all …]
/external/mesa3d/src/util/
Dhalf_float.c60 const int flt_m = fi.i & 0x7fffff; 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()
113 m = _mesa_lroundevenf(flt_m / (float) (1 << 13)); in _mesa_float_to_half_slow()
Dsoftfloat.c1387 uint64_t flt_m = di.u & 0x0fffffffffffff; in _mesa_double_to_f32() local
1395 if (flt_m != 0) { in _mesa_double_to_f32()
1411 if (!(flt_e | flt_m)) { in _mesa_double_to_f32()
1419 m = _mesa_short_shift_right_jam64(flt_m, 22); in _mesa_double_to_f32()
1441 const uint32_t flt_m = fi.u & 0x7fffff; in _mesa_float_to_half_rtz_slow() local
1449 if (flt_m != 0) { in _mesa_float_to_half_rtz_slow()
1461 if (!(flt_e | flt_m)) { in _mesa_float_to_half_rtz_slow()
1467 m = flt_m >> 9 | ((flt_m & 0x1ff) != 0); in _mesa_float_to_half_rtz_slow()