1
0
mirror of https://github.com/cc65/cc65.git synced 2024-07-03 06:29:36 +00:00
cc65/include/math.h

59 lines
1.5 KiB
C
Raw Normal View History

#ifndef _MATH_H_
#define _MATH_H_
#include "_float.h"
/* double pow(double x, double y); */
float __fastcall__ powf(float f, float a); /* C99 */
/* double sin(double x); */
float __fastcall__ sinf(float s); /* C99 */
/* double cos(double x); */
float __fastcall__ cosf(float s); /* C99 */
/* double log(double x); */
float __fastcall__ logf(float x); /* C99 */
/* double exp(double x); */
float __fastcall__ expf(float x); /* C99 */
/* double sqrt(double x); */
float __fastcall__ sqrtf(float x); /* C99 */
/* double tan(double x); */
float __fastcall__ tanf(float x); /* C99 */
/* double atan(double x); */
float __fastcall__ atanf(float x); /* C99 */
/* double fabs(double x); */
float __fastcall__ fabsf(float x); /* C99 */
2022-06-20 02:31:51 +00:00
/* double round(double x); */ /* C99 */
float __fastcall__ roundf(float x); /* C99 */
/* double trunc(double x); */ /* C99 */
float __fastcall__ truncf(float x); /* C99 */
2023-08-31 21:07:15 +00:00
/* double ceil(double x) */
float __fastcall__ ceilf(float x); /* C99 */
/* double fmod(double x, double y); */
float __fastcall__ fmodf(float x, float y);
/* double floor(double x); */
float __fastcall__ floorf(float x);
2023-08-31 21:07:15 +00:00
/* beware, this is not standard */
#ifndef M_PI
#define M_PI 3.14159265358979323846f
#endif
/* FIXME */
float __fastcall__ _fatan2(float x, float y);
#endif /* _MATH_H_ */
2022-07-20 22:51:28 +00:00