diff --git a/pal_core.c b/pal_core.c index 7f360a5..d8587a8 100644 --- a/pal_core.c +++ b/pal_core.c @@ -178,17 +178,17 @@ init_eq(struct EQF *f, f->g[2] = g_hi; pal_sincos14(&sn, &cs, T14_PI * f_lo / rate); - if (EQ_P >= 15) { - f->lf = 2 * (sn << (EQ_P - 15)); - } else { - f->lf = 2 * (sn >> (15 - EQ_P)); - } +#if (EQ_P >= 15) + f->lf = 2 * (sn << (EQ_P - 15)); +#else + f->lf = 2 * (sn >> (15 - EQ_P)); +#endif pal_sincos14(&sn, &cs, T14_PI * f_hi / rate); - if (EQ_P >= 15) { - f->hf = 2 * (sn << (EQ_P - 15)); - } else { - f->hf = 2 * (sn >> (15 - EQ_P)); - } +#if (EQ_P >= 15) + f->hf = 2 * (sn << (EQ_P - 15)); +#else + f->hf = 2 * (sn >> (15 - EQ_P)); +#endif } static void @@ -359,8 +359,8 @@ pal_demodulate(struct PAL_CRT *c, int noise) field = (field * (ratio / 2)); for (line = PAL_TOP; line < PAL_BOT; line++) { - unsigned pos, ln; - int scanL, scanR, dx; + unsigned pos, ln, scanR; + int scanL, dx; int L, R; unsigned char *cL, *cR; int wave[4];