URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 318 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-options "-O2 -march=i586 -ffast-math" } */
|
/* { dg-options "-O2 -march=i586 -ffast-math" } */
|
|
|
extern double host_frametime;
|
extern double host_frametime;
|
extern float pitchvel;
|
extern float pitchvel;
|
V_DriftPitch (float delta, float move)
|
V_DriftPitch (float delta, float move)
|
{
|
{
|
if (!delta)
|
if (!delta)
|
move = host_frametime;
|
move = host_frametime;
|
if (delta > 0)
|
if (delta > 0)
|
;
|
;
|
else if (delta < 0 && move > -delta)
|
else if (delta < 0 && move > -delta)
|
pitchvel = 0;
|
pitchvel = 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.