Changeset bae1e1f in mainline for uspace/lib/math/arch/amd64/include/libarch/math.h
- Timestamp:
- 2015-09-01T08:08:47Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 992ffa6
- Parents:
- 1d03e86
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/arch/amd64/include/libarch/math.h
r1d03e86 rbae1e1f 36 36 #define LIBMATH_amd64_MATH_H_ 37 37 38 #include <ceil.h> 39 #include <floor.h> 38 40 #include <mathtypes.h> 39 41 #include <mod.h> … … 46 48 extern float64_t sin(float64_t); 47 49 extern float64_t cos(float64_t); 50 51 static inline float64_t ceil(float64_t val) 52 { 53 float64_u arg; 54 arg.val = val; 55 56 float64_u ret; 57 ret.data = ceil_float64(arg.data); 58 59 return ret.val; 60 } 61 62 static inline float64_t floor(float64_t val) 63 { 64 float64_u arg; 65 arg.val = val; 66 67 float64_u ret; 68 ret.data = floor_float64(arg.data); 69 70 return ret.val; 71 } 72 48 73 extern float64_t trunc(float64_t); 49 74
Note:
See TracChangeset
for help on using the changeset viewer.