mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Put M_PI inside retro_miscellaneous.h
This commit is contained in:
parent
deae90e0bb
commit
a3e52a9369
@ -18,9 +18,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef M_PI
|
#include <retro_miscellaneous.h>
|
||||||
#define M_PI 3.1415926535897932384626433832795
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define CHORUS_MAX_DELAY 4096
|
#define CHORUS_MAX_DELAY 4096
|
||||||
#define CHORUS_DELAY_MASK (CHORUS_MAX_DELAY - 1)
|
#define CHORUS_DELAY_MASK (CHORUS_MAX_DELAY - 1)
|
||||||
|
@ -17,9 +17,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifndef M_PI
|
#include <retro_miscellaneous.h>
|
||||||
#define M_PI 3.1415926535897932384626433832795
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct fft
|
struct fft
|
||||||
{
|
{
|
||||||
|
@ -19,9 +19,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef M_PI
|
#include <retro_miscellaneous.h>
|
||||||
#define M_PI 3.1415926535897932384626433832795
|
|
||||||
#endif
|
|
||||||
#define sqr(a) ((a) * (a))
|
#define sqr(a) ((a) * (a))
|
||||||
|
|
||||||
/* filter types */
|
/* filter types */
|
||||||
|
@ -19,13 +19,11 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <retro_miscellaneous.h>
|
||||||
|
|
||||||
#define phaserlfoshape 4.0
|
#define phaserlfoshape 4.0
|
||||||
#define phaserlfoskipsamples 20
|
#define phaserlfoskipsamples 20
|
||||||
|
|
||||||
#ifndef M_PI
|
|
||||||
#define M_PI 3.1415926535897932384626433832795
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct phaser_data
|
struct phaser_data
|
||||||
{
|
{
|
||||||
float freq;
|
float freq;
|
||||||
|
@ -19,11 +19,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#define WAHWAH_LFO_SKIP_SAMPLES 30
|
#include <retro_miscellaneous.h>
|
||||||
|
|
||||||
#ifndef M_PI
|
#define WAHWAH_LFO_SKIP_SAMPLES 30
|
||||||
#define M_PI 3.1415926535897932384626433832795
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct wahwah_data
|
struct wahwah_data
|
||||||
{
|
{
|
||||||
|
@ -27,9 +27,7 @@ extern "C" {
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
|
||||||
#ifndef M_PI
|
#include <retro_miscellaneous.h>
|
||||||
#define M_PI 3.14159265358979323846264338327
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define RESAMPLER_SIMD_SSE (1 << 0)
|
#define RESAMPLER_SIMD_SSE (1 << 0)
|
||||||
#define RESAMPLER_SIMD_SSE2 (1 << 1)
|
#define RESAMPLER_SIMD_SSE2 (1 << 1)
|
||||||
|
@ -5,11 +5,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "../../libretro.h"
|
#include <retro_miscellaneous.h>
|
||||||
|
|
||||||
#ifndef M_PI
|
#include "../../libretro.h"
|
||||||
#define M_PI 3.14159265358979323846
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static uint16_t *frame_buf;
|
static uint16_t *frame_buf;
|
||||||
static struct retro_log_callback logging;
|
static struct retro_log_callback logging;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include <Cg/cgD3D9.h>
|
#include <Cg/cgD3D9.h>
|
||||||
|
|
||||||
#include <retro_inline.h>
|
#include <retro_inline.h>
|
||||||
|
#include <retro_miscellaneous.h>
|
||||||
#include <compat/strl.h>
|
#include <compat/strl.h>
|
||||||
|
|
||||||
#include "render_chain_driver.h"
|
#include "render_chain_driver.h"
|
||||||
|
@ -25,13 +25,14 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <compat/strl.h>
|
#include <compat/strl.h>
|
||||||
|
|
||||||
#include "../../driver.h"
|
|
||||||
#include "../../performance.h"
|
|
||||||
#include <gfx/scaler/scaler.h>
|
#include <gfx/scaler/scaler.h>
|
||||||
#include <gfx/math/matrix_4x4.h>
|
#include <gfx/math/matrix_4x4.h>
|
||||||
#include <formats/image.h>
|
#include <formats/image.h>
|
||||||
#include <retro_inline.h>
|
#include <retro_inline.h>
|
||||||
|
#include <retro_miscellaneous.h>
|
||||||
|
|
||||||
|
#include "../../driver.h"
|
||||||
|
#include "../../performance.h"
|
||||||
|
|
||||||
#include "../../libretro.h"
|
#include "../../libretro.h"
|
||||||
#include "../../general.h"
|
#include "../../general.h"
|
||||||
|
@ -21,10 +21,7 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
#include <retro_miscellaneous.h>
|
||||||
#ifndef M_PI
|
|
||||||
#define M_PI 3.14159265358979323846264338327
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../../driver.h"
|
#include "../../driver.h"
|
||||||
#include "../../libretro.h"
|
#include "../../libretro.h"
|
||||||
|
@ -30,10 +30,6 @@
|
|||||||
#include <retro_inline.h>
|
#include <retro_inline.h>
|
||||||
#include <filters.h>
|
#include <filters.h>
|
||||||
|
|
||||||
#ifndef M_PI
|
|
||||||
#define M_PI 3.14159265358979323846
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static bool allocate_filters(struct scaler_ctx *ctx)
|
static bool allocate_filters(struct scaler_ctx *ctx)
|
||||||
{
|
{
|
||||||
ctx->horiz.filter = (int16_t*)scaler_alloc(sizeof(int16_t), ctx->horiz.filter_stride * ctx->out_width);
|
ctx->horiz.filter = (int16_t*)scaler_alloc(sizeof(int16_t), ctx->horiz.filter_stride * ctx->out_width);
|
||||||
|
@ -59,6 +59,10 @@
|
|||||||
#define PATH_MAX_LENGTH 4096
|
#define PATH_MAX_LENGTH 4096
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef M_PI
|
||||||
|
#define M_PI 3.14159265358979323846264338327
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef max
|
#ifndef max
|
||||||
#define max(a, b) ((a) > (b) ? (a) : (b))
|
#define max(a, b) ((a) > (b) ? (a) : (b))
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user