mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Move math.h to firmware/libc/include/ and fix slight incompatibilities between our and the host's math.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26020 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3cca7e8650
commit
68947473e1
3 changed files with 8 additions and 3 deletions
|
@ -80,6 +80,9 @@ F3: equal to "="
|
||||||
|
|
||||||
PLUGIN_HEADER
|
PLUGIN_HEADER
|
||||||
|
|
||||||
|
|
||||||
|
#define M_TWOPI (M_PI * 2.0)
|
||||||
|
|
||||||
#define BUTTON_ROWS 5
|
#define BUTTON_ROWS 5
|
||||||
#define BUTTON_COLS 5
|
#define BUTTON_COLS 5
|
||||||
|
|
||||||
|
|
|
@ -51,8 +51,11 @@ struct tm *gmtime(const time_t *timep);
|
||||||
long strtol(const char *nptr, char **endptr, int base);
|
long strtol(const char *nptr, char **endptr, int base);
|
||||||
unsigned long strtoul(const char *str, char **endptr, int base);
|
unsigned long strtoul(const char *str, char **endptr, int base);
|
||||||
size_t strftime(char* dst, size_t max, const char* format, const struct tm* tm);
|
size_t strftime(char* dst, size_t max, const char* format, const struct tm* tm);
|
||||||
long floor(long x);
|
long lfloor(long x);
|
||||||
long pow(long x, long y);
|
long lpow(long x, long y);
|
||||||
|
|
||||||
|
#define floor lfloor
|
||||||
|
#define pow lpow
|
||||||
|
|
||||||
/* Simple substitutions */
|
/* Simple substitutions */
|
||||||
#define realloc dlrealloc
|
#define realloc dlrealloc
|
||||||
|
|
|
@ -29,7 +29,6 @@ extern "C" {
|
||||||
#define M_LN2 0.69314718055994530942
|
#define M_LN2 0.69314718055994530942
|
||||||
#define M_LN10 2.30258509299404568402
|
#define M_LN10 2.30258509299404568402
|
||||||
#define M_PI 3.14159265358979323846
|
#define M_PI 3.14159265358979323846
|
||||||
#define M_TWOPI (M_PI * 2.0)
|
|
||||||
#define M_PI_2 1.57079632679489661923
|
#define M_PI_2 1.57079632679489661923
|
||||||
#define M_PI_4 0.78539816339744830962
|
#define M_PI_4 0.78539816339744830962
|
||||||
#define M_3PI_4 2.3561944901923448370E0
|
#define M_3PI_4 2.3561944901923448370E0
|
Loading…
Add table
Add a link
Reference in a new issue