Fixed bug 5404 - stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf
Cameron Cawley stdlib: Added SDL_round, SDL_roundf, SDL_lround and SDL_lroundf The default implementation is based on the one used in the Windows RT video driver.
This commit is contained in:
@@ -783,8 +783,8 @@ if(LIBC)
|
||||
_stricmp _strnicmp strtok_s sscanf
|
||||
acos acosf asin asinf atan atanf atan2 atan2f ceil ceilf
|
||||
copysign copysignf cos cosf exp expf fabs fabsf floor floorf fmod fmodf
|
||||
log logf log10 log10f pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf
|
||||
trunc truncf)
|
||||
log logf log10 log10f lround lroundf pow powf round roundf scalbn scalbnf
|
||||
sin sinf sqrt sqrtf tan tanf trunc truncf)
|
||||
string(TOUPPER ${_FN} _UPPER)
|
||||
set(HAVE_${_UPPER} 1)
|
||||
endforeach()
|
||||
@@ -843,8 +843,8 @@ if(LIBC)
|
||||
foreach(_FN
|
||||
atan atan2 atanf atan2f ceil ceilf copysign copysignf cos cosf
|
||||
exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f
|
||||
pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf acos acosf
|
||||
asin asinf trunc truncf)
|
||||
lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt
|
||||
sqrtf tan tanf acos acosf asin asinf trunc truncf)
|
||||
string(TOUPPER ${_FN} _UPPER)
|
||||
set(_HAVEVAR "HAVE_${_UPPER}")
|
||||
check_symbol_exists("${_FN}" "math.h" ${_HAVEVAR})
|
||||
|
||||
Reference in New Issue
Block a user