replace libretro-common 20

This commit is contained in:
AZO234 2019-02-28 16:16:20 +09:00
parent d950f5c29e
commit c52afcd602
3 changed files with 3 additions and 3 deletions

View File

@ -1162,7 +1162,7 @@ static int init_tables(void)
for (x=0; x<TL_RES_LEN; x++)
{
m = (1<<16) / pow(2, (x+1) * (ENV_STEP/4.0) / 8.0);
m = (1<<16) / pow((double)2, (double)(x+1) * (ENV_STEP/4.0) / 8.0);
m = floor(m);
/* we never reach (1<<16) here due to the (x+1) */

View File

@ -1150,7 +1150,7 @@ static int init_tables(void)
for (x=0; x<TL_RES_LEN; x++)
{
m = (1<<16) / pow(2, (x+1) * (ENV_STEP/4.0) / 8.0);
m = (1<<16) / pow((double)2, (double)(x+1) * (ENV_STEP/4.0) / 8.0);
m = floor(m);
/* we never reach (1<<16) here due to the (x+1) */

View File

@ -158,7 +158,7 @@ void oplgen_initialize(UINT rate)
}
for (i = 0; i < EVC_ENT; i++)
{
pom = pow(((double)(EVC_ENT - 1 - i) / EVC_ENT), 8) * EVC_ENT;
pom = pow(((double)(EVC_ENT - 1 - i) / EVC_ENT), (double)8) * EVC_ENT;
oplcfg.envcurve[i] = (SINT32)pom;
oplcfg.envcurve[EVC_ENT + i] = i;
}