Files
Upsilon/liba/include/math.h
Émilie Feral e58163adc6 [liba] Correct error syntax: 0.0F->0.0f
Change-Id: Id81cd3395a27e5411f0d9832fdd09806fbec7cb8
2016-12-08 17:10:36 +01:00

38 lines
906 B
C

#ifndef LIBA_MATH_H
#define LIBA_MATH_H
#include "private/macros.h"
LIBA_BEGIN_DECLS
#define NAN (0.0f/0.0f)
/* The C99 standard requires isinf and isnan to be defined as macros that can
* handle arbitrary precision float numbers. The names of the functions called
* by those macros (depending on the argument size) are not standardized though.
* We're chosing isinff/isnanf for single-precision functions (which is the only
* case we're actually handling). */
int isinff(float x);
#define isinf(x) isinff(x)
int isnanf(float x);
#define isnan(x) isnanf(x)
float ceilf(float x);
float copysignf(float x, float y);
float cosf(float x);
float fabsf(float x);
float floorf(float x);
float log10f(float x);
float logf(float x);
float powf(float x, float y);
float roundf(float x);
float scalbnf(float x, int n);
float sinf(float x);
float sqrtf(float x);
float tanf(float x);
LIBA_END_DECLS
#endif