Searched refs:cast_float_to_ulong (Results 1 – 1 of 1) sorted by relevance
54 unsigned long cast_float_to_ulong(float f) in cast_float_to_ulong() function115 ok_eq_ulong(cast_float_to_ulong(0.0f), 0ul); in Test_float()116 ok_eq_ulong(cast_float_to_ulong(1.0f), 1ul); in Test_float()117 ok_eq_ulong(cast_float_to_ulong(0.5f), 0ul); in Test_float()118 ok_eq_ulong(cast_float_to_ulong(0.999999f), 0ul); in Test_float()124 ok_eq_ulong(cast_float_to_ulong(-0.0f), 0ul); in Test_float()125 ok_eq_ulong(cast_float_to_ulong(-0.5f), 0ul); in Test_float()126 ok_eq_ulong(cast_float_to_ulong(-1.0f), ULONG_MAX); in Test_float()128 ok_eq_ulong(cast_float_to_ulong(-10.0f), ULONG_MAX); in Test_float()129 ok_eq_ulong(cast_float_to_ulong(-1147483648.0f), ULONG_MAX); in Test_float()[all …]