Lines Matching refs:f_mant
124 uint32_t f_mant = f32.i & ((1 << (CL_FLT_MANT_DIG - 1)) - 1); in cl_half_from_float() local
138 if (f_mant) in cl_half_from_float()
141 uint16_t h_mant = (uint16_t)(f_mant >> lsb_pos); in cl_half_from_float()
153 if (!f_exp && !f_mant) in cl_half_from_float()
175 f_mant |= 1 << (CL_FLT_MANT_DIG - 1); in cl_half_from_float()
182 uint16_t h_mant = (uint16_t)(f_mant >> lsb_pos); in cl_half_from_float()
190 if ((f_mant & mask) > halfway) in cl_half_from_float()
195 else if ((f_mant & mask) == halfway) in cl_half_from_float()
206 if ((f_mant & mask) && !sign) in cl_half_from_float()
213 if ((f_mant & mask) && sign) in cl_half_from_float()
389 uint32_t f_mant = h_mant << (CL_FLT_MANT_DIG - CL_HALF_MANT_DIG); in cl_half_to_float() local
390 f_mant |= 0x400000; in cl_half_to_float()
391 f32.i = (sign << 31) | 0x7F800000 | f_mant; in cl_half_to_float()