Cleanup spacing

This commit is contained in:
Sam Lantinga 2023-06-15 16:43:22 -07:00
parent 16b57d2ff1
commit dab4f296b8
1 changed files with 21 additions and 42 deletions

View File

@ -24,8 +24,7 @@
#include "../libm/math_libm.h" #include "../libm/math_libm.h"
double double SDL_atan(double x)
SDL_atan(double x)
{ {
#ifdef HAVE_ATAN #ifdef HAVE_ATAN
return atan(x); return atan(x);
@ -43,8 +42,7 @@ float SDL_atanf(float x)
#endif #endif
} }
double double SDL_atan2(double y, double x)
SDL_atan2(double y, double x)
{ {
#ifdef HAVE_ATAN2 #ifdef HAVE_ATAN2
return atan2(y, x); return atan2(y, x);
@ -62,8 +60,7 @@ float SDL_atan2f(float y, float x)
#endif #endif
} }
double double SDL_acos(double val)
SDL_acos(double val)
{ {
#ifdef HAVE_ACOS #ifdef HAVE_ACOS
return acos(val); return acos(val);
@ -90,8 +87,7 @@ float SDL_acosf(float val)
#endif #endif
} }
double double SDL_asin(double val)
SDL_asin(double val)
{ {
#ifdef HAVE_ASIN #ifdef HAVE_ASIN
return asin(val); return asin(val);
@ -115,8 +111,7 @@ float SDL_asinf(float val)
#endif #endif
} }
double double SDL_ceil(double x)
SDL_ceil(double x)
{ {
#ifdef HAVE_CEIL #ifdef HAVE_CEIL
return ceil(x); return ceil(x);
@ -139,8 +134,7 @@ float SDL_ceilf(float x)
#endif #endif
} }
double double SDL_copysign(double x, double y)
SDL_copysign(double x, double y)
{ {
#ifdef HAVE_COPYSIGN #ifdef HAVE_COPYSIGN
return copysign(x, y); return copysign(x, y);
@ -166,8 +160,7 @@ float SDL_copysignf(float x, float y)
#endif #endif
} }
double double SDL_cos(double x)
SDL_cos(double x)
{ {
#ifdef HAVE_COS #ifdef HAVE_COS
return cos(x); return cos(x);
@ -185,8 +178,7 @@ float SDL_cosf(float x)
#endif #endif
} }
double double SDL_exp(double x)
SDL_exp(double x)
{ {
#ifdef HAVE_EXP #ifdef HAVE_EXP
return exp(x); return exp(x);
@ -204,8 +196,7 @@ float SDL_expf(float x)
#endif #endif
} }
double double SDL_fabs(double x)
SDL_fabs(double x)
{ {
#ifdef HAVE_FABS #ifdef HAVE_FABS
return fabs(x); return fabs(x);
@ -223,8 +214,7 @@ float SDL_fabsf(float x)
#endif #endif
} }
double double SDL_floor(double x)
SDL_floor(double x)
{ {
#ifdef HAVE_FLOOR #ifdef HAVE_FLOOR
return floor(x); return floor(x);
@ -242,8 +232,7 @@ float SDL_floorf(float x)
#endif #endif
} }
double double SDL_trunc(double x)
SDL_trunc(double x)
{ {
#ifdef HAVE_TRUNC #ifdef HAVE_TRUNC
return trunc(x); return trunc(x);
@ -265,8 +254,7 @@ float SDL_truncf(float x)
#endif #endif
} }
double double SDL_fmod(double x, double y)
SDL_fmod(double x, double y)
{ {
#ifdef HAVE_FMOD #ifdef HAVE_FMOD
return fmod(x, y); return fmod(x, y);
@ -284,8 +272,7 @@ float SDL_fmodf(float x, float y)
#endif #endif
} }
double double SDL_log(double x)
SDL_log(double x)
{ {
#ifdef HAVE_LOG #ifdef HAVE_LOG
return log(x); return log(x);
@ -303,8 +290,7 @@ float SDL_logf(float x)
#endif #endif
} }
double double SDL_log10(double x)
SDL_log10(double x)
{ {
#ifdef HAVE_LOG10 #ifdef HAVE_LOG10
return log10(x); return log10(x);
@ -322,8 +308,7 @@ float SDL_log10f(float x)
#endif #endif
} }
double double SDL_modf(double x, double *y)
SDL_modf(double x, double *y)
{ {
#ifdef HAVE_MODF #ifdef HAVE_MODF
return modf(x, y); return modf(x, y);
@ -344,8 +329,7 @@ float SDL_modff(float x, float *y)
#endif #endif
} }
double double SDL_pow(double x, double y)
SDL_pow(double x, double y)
{ {
#ifdef HAVE_POW #ifdef HAVE_POW
return pow(x, y); return pow(x, y);
@ -363,8 +347,7 @@ float SDL_powf(float x, float y)
#endif #endif
} }
double double SDL_round(double arg)
SDL_round(double arg)
{ {
#if defined HAVE_ROUND #if defined HAVE_ROUND
return round(arg); return round(arg);
@ -404,8 +387,7 @@ long SDL_lroundf(float arg)
#endif #endif
} }
double double SDL_scalbn(double x, int n)
SDL_scalbn(double x, int n)
{ {
#ifdef HAVE_SCALBN #ifdef HAVE_SCALBN
return scalbn(x, n); return scalbn(x, n);
@ -429,8 +411,7 @@ float SDL_scalbnf(float x, int n)
#endif #endif
} }
double double SDL_sin(double x)
SDL_sin(double x)
{ {
#ifdef HAVE_SIN #ifdef HAVE_SIN
return sin(x); return sin(x);
@ -448,8 +429,7 @@ float SDL_sinf(float x)
#endif #endif
} }
double double SDL_sqrt(double x)
SDL_sqrt(double x)
{ {
#ifdef HAVE_SQRT #ifdef HAVE_SQRT
return sqrt(x); return sqrt(x);
@ -467,8 +447,7 @@ float SDL_sqrtf(float x)
#endif #endif
} }
double double SDL_tan(double x)
SDL_tan(double x)
{ {
#ifdef HAVE_TAN #ifdef HAVE_TAN
return tan(x); return tan(x);