forked from len0rd/rockbox
Take 2 at 'Consolidate all fixed point math routines in one library' (FS#10400) by Jeffrey Goode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21664 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
427bf0b893
commit
802743a061
22 changed files with 754 additions and 755 deletions
|
@ -433,12 +433,12 @@ static void cube_rotate(int xa, int ya, int za)
|
|||
/* Just to prevent unnecessary lookups */
|
||||
long sxa, cxa, sya, cya, sza, cza;
|
||||
|
||||
sxa = sin_int(xa);
|
||||
cxa = cos_int(xa);
|
||||
sya = sin_int(ya);
|
||||
cya = cos_int(ya);
|
||||
sza = sin_int(za);
|
||||
cza = cos_int(za);
|
||||
sxa = fp14_sin(xa);
|
||||
cxa = fp14_cos(xa);
|
||||
sya = fp14_sin(ya);
|
||||
cya = fp14_cos(ya);
|
||||
sza = fp14_sin(za);
|
||||
cza = fp14_cos(za);
|
||||
|
||||
/* calculate overall translation matrix */
|
||||
matrice[0][0] = (cza * cya) >> 14;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue