Ignore:
Timestamp:
2014-03-06T02:45:53Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c60e9ee
Parents:
47f7390f
Message:

implement generic sine and cosine functions using Taylor series approximation

File:
1 edited

Legend:

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

    r47f7390f rba11ebb  
    3737
    3838#include <mathtypes.h>
     39#include <mod.h>
    3940#include <trunc.h>
     41#include <trig.h>
     42
     43static inline double fmod(double dividend, double divisor)
     44{
     45        return double_mod(dividend, divisor);
     46}
    4047
    4148static inline double trunc(double val)
     
    5259static inline double sin(double val)
    5360{
    54         // FIXME TODO
    55         return 0;
     61        return double_sin(val);
    5662}
    5763
    5864static inline double cos(double val)
    5965{
    60         // FIXME TODO
    61         return 1;
     66        return double_cos(val);
    6267}
    6368
Note: See TracChangeset for help on using the changeset viewer.