Changeset 84929b0 in mainline for uspace/lib/math/generic/fabs.c
- Timestamp:
- 2018-08-29T20:06:00Z (6 years ago)
- Children:
- ed9043f7
- Parents:
- 184ff675
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-29 19:44:33)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-29 20:06:00)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/generic/fabs.c
r184ff675 r84929b0 33 33 */ 34 34 35 #ifndef LIBMATH_TRUNC_H_ 36 #define LIBMATH_TRUNC_H_ 35 #include <math.h> 37 36 38 #include <mathtypes.h> 37 float fabsf(float val) 38 { 39 return copysignf(val, 1.0f); 40 } 39 41 40 extern float32_t float32_trunc(float32_t); 41 extern float64_t float64_trunc(float64_t); 42 43 #endif 42 double fabs(double val) 43 { 44 return copysign(val, 1.0); 45 } 44 46 45 47 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.