Changes in uspace/lib/math/generic/ceil.c [9adb61d:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/generic/ceil.c
r9adb61d ra35b458 48 48 float32_u v; 49 49 float32_u r; 50 50 51 51 v.val = val; 52 52 t.val = trunc_f32(val); 53 53 54 54 if (v.data.parts.sign == 1 || val == t.val) { 55 55 r = t; … … 57 57 r.val = t.val + 1.0; 58 58 } 59 59 60 60 return r.val; 61 61 } … … 72 72 float64_u v; 73 73 float64_u r; 74 74 75 75 v.val = val; 76 76 t.val = trunc_f64(val); 77 77 78 78 if (v.data.parts.sign == 1 || val == t.val) { 79 79 r = t; … … 81 81 r.val = t.val + 1.0; 82 82 } 83 83 84 84 return r.val; 85 85 }
Note:
See TracChangeset
for help on using the changeset viewer.