shithub: npe

ref: 2d42c484b86d9551a6e586b6bf446956602490eb
dir: /include/npe/math.h/

View raw version
#ifndef _npe_math_h_
#define _npe_math_h_

#include <npe.h>

#define M_PI 3.14159265358979323846

#define isnan isNaN

#define acosf acos
#define asinf asin
#define atan2f atan2
#define atanf atan
#define cosf cos
#define sinf sin
#define tanf tan

#define ceilf ceil
#define fabsf fabs
#define floorf floor
#define fmodf fmod
#define powf pow

double exp2(double);
#define exp2f exp2

double log2(double);
float log2f(float);

double round(double);
#define roundf round

double trunc(double);
#define truncf trunc

int lrintf(float f);
long lrint(double d);

#endif