pdbox: Always use fixedpoint version of math functions
Change-Id: Ie5671d8f425804c9cf3265bad86eadadaf73ea1c
This commit is contained in:
parent
ef4bf8a9f0
commit
71778bd21e
12 changed files with 14 additions and 12 deletions
|
@ -15,7 +15,7 @@
|
|||
#include "plugin.h"
|
||||
#include "../../pdbox.h"
|
||||
#include "../src/m_pd.h"
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#include "filters.h"
|
||||
#else /* ROCKBOX */
|
||||
#include "../src/m_pd.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "plugin.h"
|
||||
#include "../../pdbox.h"
|
||||
#include "../src/m_pd.h"
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#include "filters.h"
|
||||
#else /* ROCKBOX */
|
||||
#include "../src/m_pd.h"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#define __GGEE_FILTERS_H__
|
||||
|
||||
#ifdef ROCKBOX
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#else
|
||||
#include <math.h>
|
||||
#endif
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "plugin.h"
|
||||
#include "../../pdbox.h"
|
||||
#include "../src/m_pd.h"
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#include "filters.h"
|
||||
#else /* ROCKBOX */
|
||||
#include "../src/m_pd.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "plugin.h"
|
||||
#include "../../pdbox.h"
|
||||
#include "../src/m_pd.h"
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#include "filters.h"
|
||||
#else /* ROCKBOX */
|
||||
#include "../src/m_pd.h"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#include "plugin.h"
|
||||
#include "../../pdbox.h"
|
||||
#include "../src/m_pd.h"
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#else /* ROCKBOX */
|
||||
#include "../src/m_pd.h"
|
||||
#include <math.h>
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "plugin.h"
|
||||
#include "../../pdbox.h"
|
||||
#include "../src/m_pd.h"
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#include "filters.h"
|
||||
#else /* ROCKBOX */
|
||||
#include "../src/m_pd.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "plugin.h"
|
||||
#include "../../pdbox.h"
|
||||
#include "../src/m_pd.h"
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#include "filters.h"
|
||||
#else /* ROCKBOX */
|
||||
#include "../src/m_pd.h"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include "plugin.h"
|
||||
#include "../../pdbox.h"
|
||||
#include "../src/m_pd.h"
|
||||
#include "math.h"
|
||||
#include "../../math.h"
|
||||
#include "filters.h"
|
||||
#else /* ROCKBOX */
|
||||
#include "../src/m_pd.h"
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#endif
|
||||
|
||||
#include "m_pd.h"
|
||||
#include <math.h>
|
||||
#include "../../math.h"
|
||||
#define LOGTEN 2.302585092994
|
||||
|
||||
float mtof(float f)
|
||||
|
|
|
@ -12,7 +12,7 @@ inputs to int and their outputs back to float. */
|
|||
#endif
|
||||
|
||||
#include "m_pd.h"
|
||||
#include <math.h>
|
||||
#include "../../math.h"
|
||||
|
||||
|
||||
/* MSW and OSX don't appear to have single-precision ANSI math */
|
||||
|
|
|
@ -170,7 +170,7 @@ void pd_init(void);
|
|||
|
||||
//#ifndef SIMULATOR
|
||||
/*FIXME: is it a correct replacement??? */
|
||||
#if !(CONFIG_PLATFORM & PLATFORM_HOSTED)
|
||||
/* #if !(CONFIG_PLATFORM & PLATFORM_HOSTED) */
|
||||
#define floor rb_floor
|
||||
#define atof rb_atof
|
||||
#define atol rb_atol
|
||||
|
@ -186,9 +186,11 @@ void pd_init(void);
|
|||
#define atan2 rb_atan2
|
||||
#define sinh rb_sinh
|
||||
#define tan rb_tan
|
||||
/*
|
||||
#else
|
||||
#include <math.h>
|
||||
#endif
|
||||
*/
|
||||
|
||||
#define ftoan rb_ftoan
|
||||
#undef strtok_r
|
||||
|
|
Loading…
Reference in a new issue