Ignore:
Timestamp:
2015-09-04T06:40:20Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
01cdd5a
Parents:
bae1e1f
Message:

Add exp(f), log(f), pow(f). Improve precision of sin, cos.

File:
1 edited

Legend:

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

    rbae1e1f r992ffa6  
    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)
     
    6063}
    6164
     65static inline float32_t expf(float32_t val)
     66{
     67        return float32_exp(val);
     68}
     69
     70static inline float64_t exp(float64_t val)
     71{
     72        return float64_exp(val);
     73}
     74
    6275static inline float64_t floor(float64_t val)
    6376{
     
    7184}
    7285
     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.