Changeset e6f5766 in mainline for uspace/lib/math/generic/ceil.c
- Timestamp:
- 2015-09-05T10:11:40Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9adb61d
- Parents:
- 01cdd5a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/generic/ceil.c
r01cdd5a re6f5766 43 43 * @return Number rounded towards positive infinity. 44 44 */ 45 float64 ceil_float64(float64val)45 float64_t float64_ceil(float64_t val) 46 46 { 47 47 float64_u t; … … 49 49 float64_u r; 50 50 51 v. data= val;52 t. data = trunc_float64(val);51 v.val = val; 52 t.val = float64_trunc(val); 53 53 54 if (v al.parts.sign == 1 || v.val == t.val) {54 if (v.data.parts.sign == 1 || val == t.val) { 55 55 r = t; 56 56 } else { … … 58 58 } 59 59 60 return r. data;60 return r.val; 61 61 } 62 62
Note:
See TracChangeset
for help on using the changeset viewer.