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_ATAN2) 57 #if defined(HAVE_ACOS) 77 #if defined(HAVE_ASIN) 82 result = -(M_PI / 2.0);
84 result = (M_PI / 2.0) -
SDL_acos(val);
93 #if defined(HAVE_CEIL) 97 double fraction = x - integer;
108 #if defined(HAVE_COPYSIGN) 110 #elif defined(HAVE__COPYSIGN) 111 return _copysign(x, y);
120 #if defined(HAVE_COS) 130 #if defined(HAVE_COSF) 133 return (
float)
SDL_cos((
double)x);
140 #if defined(HAVE_FABS) 150 #if defined(HAVE_FLOOR) 160 #if defined(HAVE_LOG) 170 #if defined(HAVE_POW) 180 #if defined(HAVE_SCALBN) 182 #elif defined(HAVE__SCALB) 192 #if defined(HAVE_SIN) 202 #if defined(HAVE_SINF) 205 return (
float)
SDL_sin((
double)x);
212 #if defined(HAVE_SQRT) 222 #if defined(HAVE_SQRTF) 232 #if defined(HAVE_TAN) 242 #if defined(HAVE_TANF) 245 return (
float)
SDL_tan((
double)x);
251 #if defined(HAVE_ABS) 254 return ((x) < 0 ? -(x) : (x));
258 #if defined(HAVE_CTYPE_H) 265 int SDL_isspace(
int x) {
return ((x) ==
' ') || ((
x) ==
'\t') || ((
x) ==
'\r') || ((
x) ==
'\n') || ((
x) ==
'\f') || ((
x) ==
'\v'); }
266 int SDL_toupper(
int x) {
return ((x) >=
'a') && ((
x) <=
'z') ? (
'A'+((
x)-
'a')) : (x); }
267 int SDL_tolower(
int x) {
return ((x) >=
'A') && ((
x) <=
'Z') ? (
'a'+((
x)-
'A')) : (x); }
274 #if defined(_MSC_VER) 278 __declspec(selectany)
int _fltused = 1;
282 #if (_MSC_VER >= 1400) && defined(_WIN64) && !defined(_DEBUG) && !(_MSC_VER >= 1900 && defined(_MT)) 285 #pragma function(memcpy) 295 for (i = num / 64; i--;) {
296 _mm_prefetch(src, _MM_HINT_NTA);
297 values[0] = *(__m128 *) (src + 0);
298 values[1] = *(__m128 *) (src + 16);
299 values[2] = *(__m128 *) (src + 32);
300 values[3] = *(__m128 *) (src + 48);
301 _mm_stream_ps((
float *) (dst + 0), values[0]);
302 _mm_stream_ps((
float *) (dst + 16), values[1]);
303 _mm_stream_ps((
float *) (dst + 32), values[2]);
304 _mm_stream_ps((
float *) (dst + 48), values[3]);
332 fst dword
ptr [esp+18
h]
333 fistp qword
ptr [esp+10
h]
334 fild qword
ptr [esp+10
h]
338 je integer_QnaN_or_zero
339 arg_is_not_integer_QnaN:
359 integer_QnaN_or_zero:
362 jne arg_is_not_integer_QnaN
363 fstp dword
ptr [esp+18
h]
364 fstp dword
ptr [esp+18
h]
388 mov ecx, dword
ptr[esp+0Ch]
398 mul dword
ptr[esp+14
h]
428 mov dword ptr [esp+10
h],edx
430 mov eax,dword ptr [esp+1Ch]
434 mov edx,dword ptr [esp+18
h]
438 mov dword ptr [esp+1Ch],eax
439 mov dword ptr [esp+18
h],edx
443 mov ecx,dword ptr [esp+18
h]
444 mov eax,dword ptr [esp+14
h]
448 mov eax,dword ptr [esp+10
h]
454 mov ecx,dword ptr [esp+18
h]
455 mov edx,dword ptr [esp+14
h]
456 mov eax,dword ptr [esp+10
h]
466 mul dword ptr [esp+1Ch]
468 mov eax,dword ptr [esp+18
h]
472 cmp edx,dword ptr [esp+14
h]
475 cmp eax,dword ptr [esp+10
h]
513 mov eax,dword
ptr [esp+0Ch]
521 mov eax,dword
ptr [esp+0Ch]
531 mul dword
ptr [esp+18
h]
537 cmp edx,dword
ptr [esp+10
h]
540 cmp eax,dword
ptr [esp+0Ch]
568 mov edx,dword
ptr [esp+0Ch]
573 mov dword ptr [esp+0Ch],edx
575 mov eax,dword ptr [esp+18
h]
578 mov edx,dword ptr [esp+14
h]
582 mov dword ptr [esp+18
h],eax
583 mov dword ptr [esp+14
h],edx
587 mov ecx,dword ptr [esp+14
h]
588 mov eax,dword ptr [esp+10
h]
591 mov eax,dword ptr [esp+0Ch]
600 mov ecx,dword ptr [esp+14
h]
601 mov edx,dword ptr [esp+10
h]
602 mov eax,dword ptr [esp+0Ch]
612 mul dword ptr [esp+18
h]
614 mul dword ptr [esp+14
h]
617 cmp edx,dword ptr [esp+10
h]
620 cmp eax,dword ptr [esp+0Ch]
623 sub eax,dword ptr [esp+14
h]
624 sbb edx,dword ptr [esp+18
h]
626 sub eax,dword ptr [esp+0Ch]
627 sbb edx,dword ptr [esp+10
h]
653 mov eax,dword
ptr [esp+0Ch]
664 mov edx,dword
ptr [esp+0Ch]
675 mul dword
ptr [esp+14
h]
677 mul dword
ptr [esp+10
h]
680 cmp edx,dword
ptr [esp+0Ch]
683 cmp eax,dword
ptr [esp+8]
687 sbb edx,dword
ptr [esp+14
h]
690 sbb edx,dword
ptr [esp+0Ch]
722 mov dword ptr [esp+10
h],edx
724 mov eax,dword ptr [esp+1Ch]
728 mov edx,dword ptr [esp+18
h]
732 mov dword ptr [esp+1Ch],eax
733 mov dword ptr [esp+18
h],edx
737 mov ecx,dword ptr [esp+18
h]
738 mov eax,dword ptr [esp+14
h]
742 mov eax,dword ptr [esp+10
h]
746 mul dword ptr [esp+18
h]
749 mul dword ptr [esp+18
h]
754 mov ecx,dword ptr [esp+18
h]
755 mov edx,dword ptr [esp+14
h]
756 mov eax,dword ptr [esp+10
h]
766 mul dword ptr [esp+1Ch]
768 mov eax,dword ptr [esp+18
h]
772 cmp edx,dword ptr [esp+14
h]
775 cmp eax,dword ptr [esp+10
h]
779 sub eax,dword ptr [esp+18
h]
780 sbb edx,dword ptr [esp+1Ch]
784 sub eax,dword ptr [esp+10
h]
785 sbb edx,dword ptr [esp+14
h]
822 mov eax,dword
ptr [esp+0Ch]
830 mul dword
ptr [esp+10
h]
833 mul dword
ptr [esp+10
h]
839 mov edx,dword
ptr [esp+0Ch]
850 mul dword
ptr [esp+14
h]
856 cmp edx,dword
ptr [esp+0Ch]
859 cmp eax,dword
ptr [esp+8]
864 sbb edx,dword
ptr [esp+14
h]
869 sbb edx,dword
ptr [esp+0Ch]
double SDL_uclibc_log(double x)
GLint GLint GLint GLint GLint x
double SDL_sqrt(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 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
double SDL_uclibc_sin(double x)
double SDL_uclibc_atan2(double y, double x)
double SDL_ceil(double x)
double SDL_uclibc_copysign(double x, double y)
double SDL_uclibc_pow(double x, double y)
double SDL_uclibc_floor(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 PF lsl PF sub
double SDL_atan(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 PF lsl PF PF lsl PF PF PF else PF mov
double SDL_uclibc_fabs(double x)
double SDL_uclibc_sqrt(double x)
double SDL_scalbn(double x, int n)
double SDL_fabs(double x)
double SDL_acos(double val)
double SDL_floor(double x)
GLint GLint GLint GLint GLint GLint y
uint8_t Uint8
An unsigned 8-bit integer type.
GLenum GLsizei GLsizei GLint * values
GLsizei GLsizei GLchar * source
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
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_uclibc_cos(double x)
double SDL_uclibc_atan(double x)
double SDL_asin(double val)
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)
double SDL_pow(double x, double y)
double SDL_copysign(double x, double y)
double SDL_atan2(double x, double y)
GLfloat GLfloat GLfloat GLfloat h
double SDL_uclibc_scalbn(double x, int n)