nmpp
tfixpointmath.h
1#ifndef _tfixpoint_MATH
2#define _tfixpoint_MATH
3#include <math.h>
4
5
6template <class T, int point> __INLINE__ tfixpoint<T,point> pow (tfixpoint<T,point> a, tfixpoint<T,point> b) { return pow(a.flt(), b.flt());}
7template <class T, int point> __INLINE__ tfixpoint<T,point> fabs(tfixpoint<T,point> a) { return fabs(a.flt());}
8template <class T, int point> __INLINE__ tfixpoint<T,point> log (tfixpoint<T,point> a) { return log (a.flt());}
9template <class T, int point> __INLINE__ tfixpoint<T,point> sqrt(tfixpoint<T,point> a) { return sqrt(a.flt());}
10template <class T, int point> __INLINE__ tfixpoint<T,point> cos (tfixpoint<T,point> a) { return cos (a.flt());}
11template <class T, int point> __INLINE__ tfixpoint<T,point> sin (tfixpoint<T,point> a) { return sin (a.flt());}
12
13
14#endif
Definition: tfixpoint.h:52