mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Resamplers) Some C89 build fixes
This commit is contained in:
parent
6214e8e211
commit
96834c8795
@ -68,7 +68,7 @@ typedef struct rarch_CC_resampler
|
||||
|
||||
static void *memalign_alloc__(size_t boundary, size_t size)
|
||||
{
|
||||
uintptr_t addr;
|
||||
uintptr_t addr = 0;
|
||||
void **place;
|
||||
void *ptr = malloc(boundary + size + sizeof(uintptr_t));
|
||||
if (!ptr)
|
||||
@ -540,7 +540,8 @@ static void resampler_CC_upsample(void *re_, struct resampler_data *data)
|
||||
static void resampler_CC_process(void *re_, struct resampler_data *data)
|
||||
{
|
||||
rarch_CC_resampler_t *re = (rarch_CC_resampler_t*)re_;
|
||||
re->process(re_, data);
|
||||
if (re)
|
||||
re->process(re_, data);
|
||||
}
|
||||
|
||||
static void resampler_CC_free(void *re_)
|
||||
|
@ -202,6 +202,7 @@ static void init_sinc_table(rarch_sinc_resampler_t *resamp, double cutoff,
|
||||
|
||||
if (calculate_delta)
|
||||
{
|
||||
int phase;
|
||||
for (p = 0; p < phases - 1; p++)
|
||||
{
|
||||
for (j = 0; j < taps; j++)
|
||||
@ -212,7 +213,7 @@ static void init_sinc_table(rarch_sinc_resampler_t *resamp, double cutoff,
|
||||
}
|
||||
}
|
||||
|
||||
int phase = phases - 1;
|
||||
phase = phases - 1;
|
||||
for (j = 0; j < taps; j++)
|
||||
{
|
||||
float val, delta;
|
||||
@ -233,8 +234,8 @@ static void init_sinc_table(rarch_sinc_resampler_t *resamp, double cutoff,
|
||||
/* No memalign() for us on Win32 ... */
|
||||
static void *aligned_alloc__(size_t boundary, size_t size)
|
||||
{
|
||||
uintptr_t addr;
|
||||
void **place;
|
||||
uintptr_t addr = 0;
|
||||
void *ptr = malloc(boundary + size + sizeof(uintptr_t));
|
||||
|
||||
if (!ptr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user