Home
last modified time | relevance | path

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

/hal_nxp-latest/mcux/mcux-sdk/drivers/isi/
Dfsl_isi.c151 int32_t expValue = (int32_t)expBits - 127; in ISI_ConvertFloat() local
154 expValue += (int32_t)fracBits; in ISI_ConvertFloat()
156 if (expValue < 0) in ISI_ConvertFloat()
160 else if (expValue > 23) in ISI_ConvertFloat()
163 assert((expValue - 23) <= 7); in ISI_ConvertFloat()
164 ret <<= ((uint32_t)expValue - 23UL); in ISI_ConvertFloat()
168 ret >>= (23UL - (uint32_t)expValue); in ISI_ConvertFloat()
/hal_nxp-latest/mcux/mcux-sdk/drivers/pxp/
Dfsl_pxp.c204 int32_t expValue = (int32_t)((uint16_t)((floatBits & 0x7F800000UL) >> 23U)) - 127; in PXP_ConvertFloat() local
207 expValue += (int32_t)fracBits; in PXP_ConvertFloat()
209 if (expValue < 0) in PXP_ConvertFloat()
213 else if (expValue > 23) in PXP_ConvertFloat()
216 assert((expValue - 23) <= 7); in PXP_ConvertFloat()
217 ret <<= ((uint16_t)expValue - 23U); in PXP_ConvertFloat()
221 ret >>= (23U - (uint16_t)expValue); in PXP_ConvertFloat()
/hal_nxp-latest/mcux/mcux-sdk/drivers/dpu/
Dfsl_dpu.c1118 int32_t expValue = (int32_t)expBits - 127; in DPU_ConvertFloat() local
1121 expValue += (int32_t)fracBits; in DPU_ConvertFloat()
1123 if (expValue < 0) in DPU_ConvertFloat()
1127 else if (expValue > 23) in DPU_ConvertFloat()
1130 assert((expValue - 23) <= 7); in DPU_ConvertFloat()
1131 ret <<= ((uint32_t)expValue - 23UL); in DPU_ConvertFloat()
1135 ret >>= (23UL - (uint32_t)expValue); in DPU_ConvertFloat()