Ignore:
Timestamp:
2015-09-04T08:15:13Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6f5766
Parents:
992ffa6
Message:

Add missing math exp(f), lg(f), pow(f) definitions for all architectures.

File:
1 edited

Legend:

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

    r992ffa6 r01cdd5a  
    3737
    3838#include <ceil.h>
     39#include <exp.h>
    3940#include <floor.h>
     41#include <log.h>
    4042#include <mathtypes.h>
    4143#include <mod.h>
     44#include <pow.h>
    4245
    4346static inline float64_t fmod(float64_t dividend, float64_t divisor)
     
    7174}
    7275
     76static inline float32_t expf(float32_t val)
     77{
     78        return float32_exp(val);
     79}
     80
     81static inline float64_t exp(float64_t val)
     82{
     83        return float64_exp(val);
     84}
     85
     86static inline float32_t logf(float32_t val)
     87{
     88        return float32_log(val);
     89}
     90
     91static inline float64_t log(float64_t val)
     92{
     93        return float64_log(val);
     94}
     95
     96static inline float32_t powf(float32_t x, float32_t y)
     97{
     98        return float32_pow(x, y);
     99}
     100
     101static inline float64_t pow(float64_t x, float64_t y)
     102{
     103        return float64_pow(x, y);
     104}
     105
    73106extern float64_t trunc(float64_t);
    74107
Note: See TracChangeset for help on using the changeset viewer.