Ignore:
Timestamp:
2015-09-01T08:08:47Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
992ffa6
Parents:
1d03e86
Message:

floor() and ceil().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/math/arch/mips32eb/include/libarch/math.h

    r1d03e86 rbae1e1f  
    3636#define LIBMATH_mips32eb_MATH_H_
    3737
     38#include <ceil.h>
     39#include <floor.h>
    3840#include <mathtypes.h>
    3941#include <mod.h>
     
    5759}
    5860
     61static inline float64_t ceil(float64_t val)
     62{
     63        float64_u arg;
     64        arg.val = val;
     65       
     66        float64_u ret;
     67        ret.data = ceil_float64(arg.data);
     68       
     69        return ret.val;
     70}
     71
     72static inline float64_t floor(float64_t val)
     73{
     74        float64_u arg;
     75        arg.val = val;
     76       
     77        float64_u ret;
     78        ret.data = floor_float64(arg.data);
     79       
     80        return ret.val;
     81}
     82
    5983static inline float64_t sin(float64_t val)
    6084{
Note: See TracChangeset for help on using the changeset viewer.