mirror of
https://github.com/libretro/NP2kai.git
synced 2024-10-06 22:33:28 +00:00
replace libretro-common 20
This commit is contained in:
parent
d950f5c29e
commit
c52afcd602
@ -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) */
|
||||
|
@ -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) */
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user