mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 22:54:34 +00:00
Updates SDL to 2.0.5
This commit is contained in:
parent
00a4a21e3f
commit
1e671bfc7a
274 changed files with 11502 additions and 4656 deletions
|
|
@ -34,7 +34,7 @@
|
|||
double
|
||||
SDL_atan(double x)
|
||||
{
|
||||
#ifdef HAVE_ATAN
|
||||
#if defined(HAVE_ATAN)
|
||||
return atan(x);
|
||||
#else
|
||||
return SDL_uclibc_atan(x);
|
||||
|
|
@ -90,7 +90,7 @@ SDL_asin(double val)
|
|||
double
|
||||
SDL_ceil(double x)
|
||||
{
|
||||
#ifdef HAVE_CEIL
|
||||
#if defined(HAVE_CEIL)
|
||||
return ceil(x);
|
||||
#else
|
||||
double integer = SDL_floor(x);
|
||||
|
|
@ -127,7 +127,7 @@ SDL_cos(double x)
|
|||
float
|
||||
SDL_cosf(float x)
|
||||
{
|
||||
#ifdef HAVE_COSF
|
||||
#if defined(HAVE_COSF)
|
||||
return cosf(x);
|
||||
#else
|
||||
return (float)SDL_cos((double)x);
|
||||
|
|
@ -199,7 +199,7 @@ SDL_sin(double x)
|
|||
float
|
||||
SDL_sinf(float x)
|
||||
{
|
||||
#ifdef HAVE_SINF
|
||||
#if defined(HAVE_SINF)
|
||||
return sinf(x);
|
||||
#else
|
||||
return (float)SDL_sin((double)x);
|
||||
|
|
@ -248,14 +248,14 @@ SDL_tanf(float x)
|
|||
|
||||
int SDL_abs(int x)
|
||||
{
|
||||
#ifdef HAVE_ABS
|
||||
#if defined(HAVE_ABS)
|
||||
return abs(x);
|
||||
#else
|
||||
return ((x) < 0 ? -(x) : (x));
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef HAVE_CTYPE_H
|
||||
#if defined(HAVE_CTYPE_H)
|
||||
int SDL_isdigit(int x) { return isdigit(x); }
|
||||
int SDL_isspace(int x) { return isspace(x); }
|
||||
int SDL_toupper(int x) { return toupper(x); }
|
||||
|
|
@ -279,7 +279,7 @@ __declspec(selectany) int _fltused = 1;
|
|||
#endif
|
||||
|
||||
/* The optimizer on Visual Studio 2005 and later generates memcpy() calls */
|
||||
#if (_MSC_VER >= 1400) && defined(_WIN64) && !defined(_DEBUG)
|
||||
#if (_MSC_VER >= 1400) && defined(_WIN64) && !defined(_DEBUG) && !(_MSC_VER >= 1900 && defined(_MT))
|
||||
#include <intrin.h>
|
||||
|
||||
#pragma function(memcpy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue