Updated math code from the uClibc 0.9.33 release

This commit is contained in:
Sam Lantinga 2017-11-04 15:53:19 -07:00
parent 554d129015
commit fd9bdc8766
18 changed files with 945 additions and 1198 deletions

View file

@ -21,9 +21,11 @@
#include "SDL_endian.h"
/* #include <sys/types.h> */
#define _IEEE_LIBM
#define attribute_hidden
#define libm_hidden_proto(x)
#define libm_hidden_def(x)
#define strong_alias(x, y)
#ifndef __HAIKU__ /* already defined in a system header. */
typedef unsigned int u_int32_t;
@ -35,6 +37,7 @@ typedef unsigned int u_int32_t;
#define cos SDL_uclibc_cos
#define fabs SDL_uclibc_fabs
#define floor SDL_uclibc_floor
#define __ieee754_fmod SDL_uclibc_fmod
#define __ieee754_log SDL_uclibc_log
#define __ieee754_pow SDL_uclibc_pow
#define scalbn SDL_uclibc_scalbn