diff options
author | Jack Yen <jyen@ti.com> | 2012-10-18 13:21:34 -0500 |
---|---|---|
committer | Craig Stout <craig.stout@ti.com> | 2012-10-19 10:17:30 -0700 |
commit | 5c0d4c763c72371bbd7cfa75c640e38ca9ded026 (patch) | |
tree | b605075895a6fc120eaa998363e25d6c48fc4756 | |
parent | ece73074b2b01da84854664b53a14b1a514708b0 (diff) | |
download | hardware_ti_omap4-5c0d4c763c72371bbd7cfa75c640e38ca9ded026.zip hardware_ti_omap4-5c0d4c763c72371bbd7cfa75c640e38ca9ded026.tar.gz hardware_ti_omap4-5c0d4c763c72371bbd7cfa75c640e38ca9ded026.tar.bz2 |
gcbv-user: fixed compiler warnings.
Change-Id: Ib1d97f7209314237ef3414ed72f557d3d28b9900
Signed-off-by: Jack Yen <jyen@ti.com>
-rw-r--r-- | gcbv/mirror/gcfilter.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gcbv/mirror/gcfilter.c b/gcbv/mirror/gcfilter.c index 25b4ce0..a3b1337 100644 --- a/gcbv/mirror/gcfilter.c +++ b/gcbv/mirror/gcfilter.c @@ -189,11 +189,13 @@ static GC_COORD_TYPE sine(GC_COORD_TYPE x) 0x0FFEEBC0, 0x0FFE0FC0, 0x0FFCF3D0, 0x0FFB97E0 }; - static const unsigned int indexwidth = 8; - static const unsigned int intwidth = 1; - static const unsigned int indexshift = intwidth - + GC_COORD_FRACTION - - indexwidth; + enum { + indexwidth = 8, + intwidth = 1, + indexshift = intwidth + + GC_COORD_FRACTION + - indexwidth + }; unsigned int p1, p2; GC_COORD_TYPE p1x, p2x; @@ -296,8 +298,8 @@ static GC_COORD_TYPE sinc_filter(GC_COORD_TYPE x, int radius) if ((quadpitd == 1) || (quadpitd == 3)) normpitd = GC_COORD_PIOVER2 - normpitd; - sinpit = sine(normpit); - sinpitd = sine(normpitd); + sinpit = sine((GC_COORD_TYPE) normpit); + sinpitd = sine((GC_COORD_TYPE) normpitd); /* Negate depending on the quadrant. */ if (negpit) { |