float_disf.c (__floatdisf): Prototype.
authorBen Elliston <bje@au.ibm.com>
Tue, 2 Dec 2008 12:51:10 +0000 (12:51 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Tue, 2 Dec 2008 12:51:10 +0000 (23:51 +1100)
* config/spu/float_disf.c (__floatdisf): Prototype.
* config/spu/float_unsdisf.c (__float_undisf): Likewise.
* config/spu/float_unssidf.c (__float_unssidf): Constify cast.
* config/spu/float_unsdidf.c (__float_unsdidf): Likewise.

From-SVN: r142352

gcc/ChangeLog
gcc/config/spu/float_disf.c
gcc/config/spu/float_unsdidf.c
gcc/config/spu/float_unsdisf.c
gcc/config/spu/float_unssidf.c

index 56cfc1b0400c95e99fd7126b0343068c431c4e8d..b4979f3ff3d846b193b39bd5696910773f112b19 100644 (file)
@@ -1,3 +1,10 @@
+2008-12-02  Ben Elliston  <bje@au.ibm.com>
+
+       * config/spu/float_disf.c (__floatdisf): Prototype.
+       * config/spu/float_unsdisf.c (__float_undisf): Likewise.
+       * config/spu/float_unssidf.c (__float_unssidf): Constify cast.
+       * config/spu/float_unsdidf.c (__float_unsdidf): Likewise.
+
 2008-12-02  DJ Delorie  <dj@redhat.com>
 
        * config/stormy16/stormy16.h (INCOMING_FRAME_SP_OFFSET): Negate.
index d8f3eb476158b6a167107a1a558db0ac3837a8f3..a298c491c14823e369280a89302fa8bfd9c1f332 100644 (file)
@@ -21,6 +21,9 @@
    however invalidate any other reasons why the executable file might be covered
    by the GNU General Public License. */
 
+/* Prototype.  */
+float __floatdisf (long long x);
+
 float __floatdisf (long long x)
 {
   /* The SPU back-end now generates inline code for this conversion.
index 9b3094915eeacaf60ae9b5002c0d1985cfdbbb68..41a08b09db935d31e989d8ed23ea5ec2476cabf3 100644 (file)
@@ -46,10 +46,10 @@ __float_unsdidf (qword DI)
   t0 = si_clz (DI);
   t1 = si_shl (DI, t0);
   t2 = si_ceqi (t0, 32);
-  t3 = si_sf (t0, *(qword *) __didf_scale);
+  t3 = si_sf (t0, *(const qword *) __didf_scale);
   t4 = si_a (t1, t1);
   t5 = si_andc (t3, t2);
-  t6 = si_shufb (t5, t4, *(qword *) __didf_pat);
+  t6 = si_shufb (t5, t4, *(const qword *) __didf_pat);
   t7 = si_shlqbii (t6, 4);
   t8 = si_shlqbyi (t7, 8);
   return si_dfa (t7, t8);
index 0f16b963e2fb3674db515b99c276b554c60850df..ca570acd9eb5d9af52d1dd5b501265e0e6f1d132 100644 (file)
@@ -21,6 +21,9 @@
    however invalidate any other reasons why the executable file might be covered
    by the GNU General Public License. */
 
+/* Prototype.  */
+float __floatundisf (unsigned long long x);
+
 float __floatundisf (unsigned long long x)
 {
   /* The SPU back-end now generates inline code for this conversion.
index 63d475b7c9d1e35662c38d7e8462437066752892..4bdb59822be3958d966c5e5d63971a42cd5cc22e 100644 (file)
@@ -42,6 +42,6 @@ __float_unssidf (qword SI)
   t4 = si_sf (t0, t1);
   t5 = si_a (t2, t2);
   t6 = si_andc (t4, t3);
-  t7 = si_shufb (t6, t5, *(qword *)__sidf_pat);
+  t7 = si_shufb (t6, t5, *(const qword *) __sidf_pat);
   return si_shlqbii (t7, 4);
 }