Changeset ba11ebb in mainline
- Timestamp:
- 2014-03-06T02:45:53Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c60e9ee
- Parents:
- 47f7390f
- Location:
- uspace/lib/math
- Files:
-
- 4 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/math/Makefile
r47f7390f rba11ebb 41 41 42 42 GENERIC_SOURCES = \ 43 generic/trig.c \ 44 generic/mod.c \ 43 45 generic/trunc.c 44 46 -
uspace/lib/math/arch/abs32le/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/arch/amd64/include/libarch/math.h
r47f7390f rba11ebb 36 36 #define LIBMATH_amd64_MATH_H_ 37 37 38 #include <mod.h> 39 40 static inline double fmod(double dividend, double divisor) 41 { 42 return double_mod(dividend, divisor); 43 } 44 38 45 extern double sin(double); 39 46 extern double cos(double); -
uspace/lib/math/arch/arm32/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/arch/ia32/include/libarch/math.h
r47f7390f rba11ebb 36 36 #define LIBMATH_ia32_MATH_H_ 37 37 38 #include <mod.h> 39 40 static inline double fmod(double dividend, double divisor) 41 { 42 return double_mod(dividend, divisor); 43 } 44 38 45 extern double sin(double); 39 46 extern double cos(double); -
uspace/lib/math/arch/ia64/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/arch/mips32/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/arch/mips32eb/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/arch/mips64/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/arch/ppc32/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/arch/sparc32/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/arch/sparc64/include/libarch/math.h
r47f7390f rba11ebb 37 37 38 38 #include <mathtypes.h> 39 #include <mod.h> 39 40 #include <trunc.h> 41 #include <trig.h> 42 43 static inline double fmod(double dividend, double divisor) 44 { 45 return double_mod(dividend, divisor); 46 } 40 47 41 48 static inline double trunc(double val) … … 52 59 static inline double sin(double val) 53 60 { 54 // FIXME TODO 55 return 0; 61 return double_sin(val); 56 62 } 57 63 58 64 static inline double cos(double val) 59 65 { 60 // FIXME TODO 61 return 1; 66 return double_cos(val); 62 67 } 63 68 -
uspace/lib/math/include/math.h
r47f7390f rba11ebb 38 38 #include <libarch/math.h> 39 39 40 #define M_PI 3.14159265358979323846 41 40 42 #endif 41 43
Note:
See TracChangeset
for help on using the changeset viewer.