Changeset a35b458 in mainline for uspace/lib/math/generic/ceil.c
- Timestamp:
- 2018-03-02T20:10:49Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
-
uspace/lib/math/generic/ceil.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/generic/ceil.c
r3061bc1 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.
