diff options
author | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-07-05 18:06:07 +0000 |
---|---|---|
committer | Maurus Cuelenaere <mcuelenaere@gmail.com> | 2009-07-05 18:06:07 +0000 |
commit | 802743a061e01150db544c8e072cd794731b18a7 (patch) | |
tree | 311abcc9e51973907899a4585dd0e3a2a31572eb /apps/plugins/cube.c | |
parent | 427bf0b8936f2654fe79e8c5864918530b8838dd (diff) | |
download | rockbox-802743a061e01150db544c8e072cd794731b18a7.tar.gz rockbox-802743a061e01150db544c8e072cd794731b18a7.zip |
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
Diffstat (limited to 'apps/plugins/cube.c')
-rw-r--r-- | apps/plugins/cube.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c index 55219e5a5e..c770214700 100644 --- a/apps/plugins/cube.c +++ b/apps/plugins/cube.c @@ -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; |