Print this page

        

@@ -26,10 +26,11 @@
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 #include <sys/isa_defs.h>
+#include <sys/ccompile.h>
 
 #ifdef _LITTLE_ENDIAN
 #define HI(x)   *(1+(int*)x)
 #define LO(x)   *(unsigned*)x
 #else

@@ -96,11 +97,10 @@
                                 *py0, *py1, *py2,
                                 *pc0, *pc1, *pc2,
                                 *xsave, *ysave, *csave;
         unsigned        hx0, hx1, hx2, xsb0, xsb1, xsb2;
         int                     i, biguns, nsave, sxsave, sysave, scsave;
-
         nsave = n;
         xsave = x;
         sxsave = stridex;
         ysave = y;
         sysave = stridey;

@@ -126,11 +126,10 @@
                                 break;
                         goto LOOP0;
                 }
                 if ( hx0 < 0x3e400000 ) {
                         /* Too small.  cos x ~ 1, sin x ~ x. */
-                        volatile int v = *x;
                         *c = 1.0;
                         *y = *x;
                         x += stridex;
                         y += stridey;
                         c += stridec;

@@ -163,11 +162,10 @@
                                 break;
                         goto LOOP1;
                 }
                 if ( hx1 < 0x3e400000 )
                 {
-                        volatile int v = *x;
                         *c = 1.0;
                         *y = *x;
                         x += stridex;
                         y += stridey;
                         c += stridec;

@@ -200,11 +198,10 @@
                                 break;
                         goto LOOP2;
                 }
                 if ( hx2 < 0x3e400000 )
                 {
-                        volatile int v = *x;
                         *c = 1.0;
                         *y = *x;
                         x += stridex;
                         y += stridey;
                         c += stridec;