Changeset 992ffa6 in mainline for uspace/lib/math/generic/floor.c
- Timestamp:
- 2015-09-04T06:40:20Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 01cdd5a
- Parents:
- bae1e1f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/generic/floor.c
rbae1e1f r992ffa6 49 49 float64_u v; 50 50 float64_u r; 51 51 52 52 v.data = val; 53 53 t.data = trunc_float64(val); 54 54 55 55 if (val.parts.sign == 0 || v.val == t.val) { 56 56 r = t; … … 58 58 r.val = t.val - 1.0; 59 59 } 60 60 61 61 return r.data; 62 62 }
Note:
See TracChangeset
for help on using the changeset viewer.