2010-07-28 14:17:54 +02:00
|
|
|
#include <math.h>
|
|
|
|
#include "mathext.h"
|
|
|
|
|
2010-07-29 10:43:32 +02:00
|
|
|
#define WRAP_FUN_DEF(FNAME, CNAME, TY_IN, TY_OUT) \
|
|
|
|
void FNAME ## _step(TY_IN a, FNAME ## _out *out) { \
|
|
|
|
out->o = CNAME(a); \
|
|
|
|
}
|
|
|
|
|
2011-09-06 14:30:30 +02:00
|
|
|
WRAP_FUN_DEF(Mathext__atanr, atan, float, float)
|
|
|
|
WRAP_FUN_DEF(Mathext__acosr, acos, float, float)
|
|
|
|
WRAP_FUN_DEF(Mathext__cosr, cos, float, float)
|
|
|
|
WRAP_FUN_DEF(Mathext__asinr, asin, float, float)
|
|
|
|
WRAP_FUN_DEF(Mathext__sinr, sin, float, float)
|
|
|
|
WRAP_FUN_DEF(Mathext__sqrtr, sqrt, float, float)
|