22 #if defined(__clang_analyzer__) && !defined(SDL_DISABLE_ANALYZE_MACROS)
23 #define SDL_DISABLE_ANALYZE_MACROS 1
26 #include "../SDL_internal.h"
31 #include "../libm/math_libm.h"
37 #if defined(HAVE_ATAN)
47 #if defined(HAVE_ATANF)
57 #if defined(HAVE_ATAN2)
67 #if defined(HAVE_ATAN2F)
77 #if defined(HAVE_ACOS)
97 #if defined(HAVE_ACOSF)
107 #if defined(HAVE_ASIN)
123 #if defined(HAVE_ASINF)
133 #if defined(HAVE_CEIL)
137 double fraction =
x - integer;
138 if (fraction > 0.0) {
148 #if defined(HAVE_CEILF)
158 #if defined(HAVE_COPYSIGN)
160 #elif defined(HAVE__COPYSIGN)
161 return _copysign(
x,
y);
162 #elif defined(__WATCOMC__) && defined(__386__)
164 unsigned int *xi = (
unsigned int *) &
x,
165 *yi = (
unsigned int *) &
y;
166 xi[1] = (yi[1] & 0x80000000) | (xi[1] & 0x7fffffff);
176 #if defined(HAVE_COPYSIGNF)
177 return copysignf(
x,
y);
186 #if defined(HAVE_COS)
196 #if defined(HAVE_COSF)
206 #if defined(HAVE_EXP)
216 #if defined(HAVE_EXPF)
226 #if defined(HAVE_FABS)
236 #if defined(HAVE_FABSF)
246 #if defined(HAVE_FLOOR)
256 #if defined(HAVE_FLOORF)
266 #if defined(HAVE_TRUNC)
280 #if defined(HAVE_TRUNCF)
290 #if defined(HAVE_FMOD)
300 #if defined(HAVE_FMODF)
310 #if defined(HAVE_LOG)
320 #if defined(HAVE_LOGF)
330 #if defined(HAVE_LOG10)
340 #if defined(HAVE_LOG10F)
350 #if defined(HAVE_POW)
360 #if defined(HAVE_POWF)
363 return (
float)
SDL_pow((
double)
x, (
double)
y);
370 #if defined(HAVE_SCALBN)
372 #elif defined(HAVE__SCALB)
374 #elif defined(HAVE_LIBC) && defined(HAVE_FLOAT_H) && (FLT_RADIX == 2)
386 #if defined(HAVE_SCALBNF)
387 return scalbnf(
x,
n);
396 #if defined(HAVE_SIN)
406 #if defined(HAVE_SINF)
416 #if defined(HAVE_SQRT)
426 #if defined(HAVE_SQRTF)
436 #if defined(HAVE_TAN)
446 #if defined(HAVE_TANF)
455 #if defined(HAVE_ABS)
458 return ((
x) < 0 ? -(
x) : (
x));
462 #if defined(HAVE_CTYPE_H)
471 int SDL_isspace(
int x) {
return ((
x) ==
' ') || ((
x) ==
'\t') || ((
x) ==
'\r') || ((
x) ==
'\n') || ((
x) ==
'\f') || ((
x) ==
'\v'); }
482 #if defined(_MSC_VER)
492 #pragma intrinsic(memcpy)
494 #pragma function(memcpy)
502 #pragma intrinsic(memset)
504 #pragma function(memset)
526 fst dword
ptr [esp+18
h]
527 fistp qword
ptr [esp+10
h]
528 fild qword
ptr [esp+10
h]
532 je integer_QnaN_or_zero
533 arg_is_not_integer_QnaN:
553 integer_QnaN_or_zero:
556 jne arg_is_not_integer_QnaN
557 fstp dword
ptr [esp+18
h]
558 fstp dword
ptr [esp+18
h]
582 mov ecx, dword
ptr[esp+0Ch]
592 mul dword
ptr[esp+14
h]
624 mov eax,dword
ptr [esp+1Ch]
632 mov dword
ptr [esp+1Ch],eax
660 mul dword
ptr [esp+1Ch]
666 cmp edx,dword
ptr [esp+14
h]
669 cmp eax,dword
ptr [esp+10
h]
707 mov eax,dword
ptr [esp+0Ch]
715 mov eax,dword
ptr [esp+0Ch]
725 mul dword
ptr [esp+18
h]
731 cmp edx,dword
ptr [esp+10
h]
734 cmp eax,dword
ptr [esp+0Ch]
762 mov edx,dword
ptr [esp+0Ch]
767 mov dword
ptr [esp+0Ch],edx
785 mov eax,dword
ptr [esp+0Ch]
796 mov eax,dword
ptr [esp+0Ch]
806 mul dword
ptr [esp+18
h]
808 mul dword
ptr [esp+14
h]
811 cmp edx,dword
ptr [esp+10
h]
814 cmp eax,dword
ptr [esp+0Ch]
818 sbb edx,dword
ptr [esp+18
h]
820 sub eax,dword
ptr [esp+0Ch]
821 sbb edx,dword
ptr [esp+10
h]
847 mov eax,dword
ptr [esp+0Ch]
858 mov edx,dword
ptr [esp+0Ch]
869 mul dword
ptr [esp+14
h]
871 mul dword
ptr [esp+10
h]
874 cmp edx,dword
ptr [esp+0Ch]
877 cmp eax,dword
ptr [esp+8]
881 sbb edx,dword
ptr [esp+14
h]
884 sbb edx,dword
ptr [esp+0Ch]
918 mov eax,dword
ptr [esp+1Ch]
926 mov dword
ptr [esp+1Ch],eax
940 mul dword
ptr [esp+18
h]
943 mul dword
ptr [esp+18
h]
960 mul dword
ptr [esp+1Ch]
966 cmp edx,dword
ptr [esp+14
h]
969 cmp eax,dword
ptr [esp+10
h]
974 sbb edx,dword
ptr [esp+1Ch]
979 sbb edx,dword
ptr [esp+14
h]
1016 mov eax,dword
ptr [esp+0Ch]
1020 mov eax,dword
ptr [esp+8]
1024 mul dword
ptr [esp+10
h]
1027 mul dword
ptr [esp+10
h]
1033 mov edx,dword
ptr [esp+0Ch]
1034 mov eax,dword
ptr [esp+8]
1044 mul dword
ptr [esp+14
h]
1050 cmp edx,dword
ptr [esp+0Ch]
1053 cmp eax,dword
ptr [esp+8]
1058 sbb edx,dword
ptr [esp+14
h]
1062 sub eax,dword
ptr [esp+8]
1063 sbb edx,dword
ptr [esp+0Ch]
GLint GLint GLint GLint GLint GLint y
GLint GLint GLint GLint GLint x
GLfloat GLfloat GLfloat GLfloat h
double SDL_sqrt(double x)
float SDL_acosf(float val)
float SDL_copysignf(float x, float y)
float SDL_scalbnf(float x, int n)
double SDL_pow(double x, double y)
double SDL_ceil(double x)
double SDL_atan(double x)
double SDL_scalbn(double x, int n)
double SDL_fmod(double x, double y)
double SDL_fabs(double x)
float SDL_truncf(float x)
double SDL_log10(double x)
double SDL_floor(double x)
double SDL_acos(double val)
float SDL_log10f(float x)
float SDL_floorf(float x)
float SDL_fmodf(float x, float y)
double SDL_asin(double val)
float SDL_asinf(float val)
float SDL_powf(float x, float y)
double SDL_copysign(double x, double y)
double SDL_atan2(double x, double y)
float SDL_atan2f(float x, float y)
double SDL_trunc(double x)
double SDL_uclibc_log10(double x)
double SDL_uclibc_atan2(double y, double x)
double SDL_uclibc_pow(double x, double y)
double SDL_uclibc_tan(double x)
double SDL_uclibc_log(double x)
double SDL_uclibc_floor(double x)
double SDL_uclibc_copysign(double x, double y)
double SDL_uclibc_scalbn(double x, int n)
double SDL_uclibc_exp(double x)
double SDL_uclibc_fmod(double x, double y)
double SDL_uclibc_atan(double x)
double SDL_uclibc_sin(double x)
double SDL_uclibc_fabs(double x)
double SDL_uclibc_sqrt(double x)
double SDL_uclibc_cos(double x)
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF base if bpp PF set rept prefetch_distance PF set OFFSET endr endif endm macro preload_leading_step2 base if bpp ifc DST PF PF else if bpp lsl PF and
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF base if bpp PF set rept prefetch_distance PF set OFFSET endr endif endm macro preload_leading_step2 base if bpp ifc DST PF PF else if bpp lsl PF PF lsl PF sub
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF base if bpp PF set rept prefetch_distance PF set OFFSET endr endif endm macro preload_leading_step2 base if bpp ifc DST PF PF else if bpp lsl PF PF lsl PF PF lsl PF PF PF else PF mov
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst st
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF ptr
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF base if bpp PF set rept prefetch_distance PF set OFFSET endr endif endm macro preload_leading_step2 base if bpp ifc DST PF PF else if bpp lsl PF PF lsl PF PF lsl PF PF PF else PF lsl PF add
double copysign(double x, double y)
__declspec(dllimport) HINSTANCE __stdcall LoadLibraryA(char const *lpLibFileName)