Go to the documentation of this file.
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_FMOD)
276 #if defined(HAVE_FMODF)
286 #if defined(HAVE_LOG)
296 #if defined(HAVE_LOGF)
306 #if defined(HAVE_LOG10)
316 #if defined(HAVE_LOG10F)
326 #if defined(HAVE_POW)
336 #if defined(HAVE_POWF)
339 return (
float)
SDL_pow((
double)
x, (
double)
y);
346 #if defined(HAVE_SCALBN)
348 #elif defined(HAVE__SCALB)
350 #elif defined(HAVE_LIBC) && defined(HAVE_FLOAT_H) && (FLT_RADIX == 2)
362 #if defined(HAVE_SCALBNF)
363 return scalbnf(
x,
n);
372 #if defined(HAVE_SIN)
382 #if defined(HAVE_SINF)
392 #if defined(HAVE_SQRT)
402 #if defined(HAVE_SQRTF)
412 #if defined(HAVE_TAN)
422 #if defined(HAVE_TANF)
431 #if defined(HAVE_ABS)
434 return ((
x) < 0 ? -(
x) : (
x));
438 #if defined(HAVE_CTYPE_H)
447 int SDL_isspace(
int x) {
return ((
x) ==
' ') || ((
x) ==
'\t') || ((
x) ==
'\r') || ((
x) ==
'\n') || ((
x) ==
'\f') || ((
x) ==
'\v'); }
458 #if defined(_MSC_VER)
462 __declspec(selectany)
int _fltused = 1;
466 #if (_MSC_VER >= 1400) && defined(_WIN64) && !defined(_DEBUG) && !(_MSC_VER >= 1900 && defined(_MT))
469 #pragma function(memcpy)
479 for (
i =
num / 64;
i--;) {
480 _mm_prefetch(
src, _MM_HINT_NTA);
485 _mm_stream_ps((
float *) (
dst + 0),
values[0]);
486 _mm_stream_ps((
float *) (
dst + 16),
values[1]);
487 _mm_stream_ps((
float *) (
dst + 32),
values[2]);
488 _mm_stream_ps((
float *) (
dst + 48),
values[3]);
516 fst dword
ptr [esp+18
h]
517 fistp qword
ptr [esp+10
h]
518 fild qword
ptr [esp+10
h]
522 je integer_QnaN_or_zero
523 arg_is_not_integer_QnaN:
543 integer_QnaN_or_zero:
546 jne arg_is_not_integer_QnaN
547 fstp dword
ptr [esp+18
h]
548 fstp dword
ptr [esp+18
h]
572 mov ecx, dword
ptr[esp+0Ch]
582 mul dword
ptr[esp+14
h]
614 mov eax,dword
ptr [esp+1Ch]
622 mov dword
ptr [esp+1Ch],eax
650 mul dword
ptr [esp+1Ch]
656 cmp edx,dword
ptr [esp+14
h]
659 cmp eax,dword
ptr [esp+10
h]
697 mov eax,dword
ptr [esp+0Ch]
705 mov eax,dword
ptr [esp+0Ch]
715 mul dword
ptr [esp+18
h]
721 cmp edx,dword
ptr [esp+10
h]
724 cmp eax,dword
ptr [esp+0Ch]
752 mov edx,dword
ptr [esp+0Ch]
757 mov dword
ptr [esp+0Ch],edx
775 mov eax,dword
ptr [esp+0Ch]
786 mov eax,dword
ptr [esp+0Ch]
796 mul dword
ptr [esp+18
h]
798 mul dword
ptr [esp+14
h]
801 cmp edx,dword
ptr [esp+10
h]
804 cmp eax,dword
ptr [esp+0Ch]
808 sbb edx,dword
ptr [esp+18
h]
810 sub eax,dword
ptr [esp+0Ch]
811 sbb edx,dword
ptr [esp+10
h]
837 mov eax,dword
ptr [esp+0Ch]
848 mov edx,dword
ptr [esp+0Ch]
859 mul dword
ptr [esp+14
h]
861 mul dword
ptr [esp+10
h]
864 cmp edx,dword
ptr [esp+0Ch]
867 cmp eax,dword
ptr [esp+8]
871 sbb edx,dword
ptr [esp+14
h]
874 sbb edx,dword
ptr [esp+0Ch]
908 mov eax,dword
ptr [esp+1Ch]
916 mov dword
ptr [esp+1Ch],eax
930 mul dword
ptr [esp+18
h]
933 mul dword
ptr [esp+18
h]
950 mul dword
ptr [esp+1Ch]
956 cmp edx,dword
ptr [esp+14
h]
959 cmp eax,dword
ptr [esp+10
h]
964 sbb edx,dword
ptr [esp+1Ch]
969 sbb edx,dword
ptr [esp+14
h]
1006 mov eax,dword
ptr [esp+0Ch]
1010 mov eax,dword
ptr [esp+8]
1014 mul dword
ptr [esp+10
h]
1017 mul dword
ptr [esp+10
h]
1023 mov edx,dword
ptr [esp+0Ch]
1024 mov eax,dword
ptr [esp+8]
1034 mul dword
ptr [esp+14
h]
1040 cmp edx,dword
ptr [esp+0Ch]
1043 cmp eax,dword
ptr [esp+8]
1048 sbb edx,dword
ptr [esp+14
h]
1052 sub eax,dword
ptr [esp+8]
1053 sbb edx,dword
ptr [esp+0Ch]
double SDL_floor(double x)
double SDL_log10(double x)
double SDL_scalbn(double x, int n)
GLsizei GLsizei GLchar * source
float SDL_fmodf(float x, float y)
float SDL_acosf(float val)
double SDL_uclibc_floor(double x)
float SDL_floorf(float x)
double SDL_uclibc_fmod(double x, double y)
double SDL_sqrt(double x)
double SDL_uclibc_sqrt(double x)
double SDL_uclibc_scalbn(double x, int n)
GLfloat GLfloat GLfloat GLfloat h
double SDL_uclibc_cos(double x)
double SDL_fmod(double x, double y)
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 SDL_uclibc_exp(double x)
GLenum GLsizei GLsizei GLint * values
GLint GLint GLint GLint GLint x
double SDL_uclibc_fabs(double x)
double SDL_uclibc_atan2(double y, double x)
float SDL_copysignf(float x, float y)
double SDL_copysign(double x, double y)
double SDL_uclibc_copysign(double x, double y)
double SDL_asin(double val)
double SDL_uclibc_pow(double x, double y)
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
double SDL_atan(double x)
double copysign(double x, double y)
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
float SDL_asinf(float val)
double SDL_uclibc_atan(double x)
float SDL_log10f(float x)
GLint GLint GLint GLint GLint GLint y
double SDL_pow(double x, double y)
float SDL_powf(float x, float y)
float SDL_scalbnf(float x, int n)
double SDL_fabs(double x)
double SDL_ceil(double x)
double SDL_acos(double val)
double SDL_uclibc_sin(double x)
double SDL_uclibc_log(double x)
float SDL_atan2f(float x, float y)
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
double SDL_uclibc_log10(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 ptr
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
double SDL_atan2(double x, double y)
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
double SDL_uclibc_tan(double x)