Changeset 84929b0 in mainline for uspace/lib/math/generic/fabs.c


Ignore:
Timestamp:
2018-08-29T20:06:00Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
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)
Message:

Strip libmath to the bare necessities

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/math/generic/fabs.c

    r184ff675 r84929b0  
    3333 */
    3434
    35 #ifndef LIBMATH_TRUNC_H_
    36 #define LIBMATH_TRUNC_H_
     35#include <math.h>
    3736
    38 #include <mathtypes.h>
     37float fabsf(float val)
     38{
     39        return copysignf(val, 1.0f);
     40}
    3941
    40 extern float32_t float32_trunc(float32_t);
    41 extern float64_t float64_trunc(float64_t);
    42 
    43 #endif
     42double fabs(double val)
     43{
     44        return copysign(val, 1.0);
     45}
    4446
    4547/** @}
Note: See TracChangeset for help on using the changeset viewer.