diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-09-17 21:28:19 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-09-17 21:28:19 +0000 |
commit | 11ca09e932517ea361cb9388bd35e1c7a957bfc3 (patch) | |
tree | 1888eb0d4f3d40df6cd44377b023159317f7c441 /sysdeps/powerpc/fpu_control.h | |
parent | cd90698b541046c22544c2c057a4676368fd1d7f (diff) | |
download | glibc-11ca09e932517ea361cb9388bd35e1c7a957bfc3.tar glibc-11ca09e932517ea361cb9388bd35e1c7a957bfc3.tar.gz glibc-11ca09e932517ea361cb9388bd35e1c7a957bfc3.tar.bz2 glibc-11ca09e932517ea361cb9388bd35e1c7a957bfc3.zip |
Fix powerpc fpu_control.h namespace and parenthesis issues (bug 15966).
Diffstat (limited to 'sysdeps/powerpc/fpu_control.h')
-rw-r--r-- | sysdeps/powerpc/fpu_control.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sysdeps/powerpc/fpu_control.h b/sysdeps/powerpc/fpu_control.h index 159543beed..1a6d395ca8 100644 --- a/sysdeps/powerpc/fpu_control.h +++ b/sysdeps/powerpc/fpu_control.h @@ -59,18 +59,18 @@ extern fpu_control_t __fpu_control; typedef unsigned int fpu_control_t __attribute__ ((__mode__ (__SI__))); /* Macros for accessing the hardware control word. */ -# define _FPU_GETCW(__cw) ( { \ - union { double d; fpu_control_t cw[2]; } \ - tmp __attribute__ ((__aligned__(8))); \ - __asm__ ("mffs 0; stfd%U0 0,%0" : "=m" (tmp.d) : : "fr0"); \ - (__cw)=tmp.cw[1]; \ - tmp.cw[1]; } ) -# define _FPU_SETCW(__cw) { \ - union { double d; fpu_control_t cw[2]; } \ - tmp __attribute__ ((__aligned__(8))); \ - tmp.cw[0] = 0xFFF80000; /* More-or-less arbitrary; this is a QNaN. */ \ - tmp.cw[1] = __cw; \ - __asm__ ("lfd%U0 0,%0; mtfsf 255,0" : : "m" (tmp.d) : "fr0"); \ +# define _FPU_GETCW(cw) ( { \ + union { double __d; fpu_control_t __cw[2]; } \ + __tmp __attribute__ ((__aligned__(8))); \ + __asm__ ("mffs 0; stfd%U0 0,%0" : "=m" (__tmp.__d) : : "fr0"); \ + (cw) = __tmp.__cw[1]; \ + __tmp.__cw[1]; } ) +# define _FPU_SETCW(cw) { \ + union { double __d; fpu_control_t __cw[2]; } \ + __tmp __attribute__ ((__aligned__(8))); \ + __tmp.__cw[0] = 0xFFF80000; /* More-or-less arbitrary; this is a QNaN. */ \ + __tmp.__cw[1] = (cw); \ + __asm__ ("lfd%U0 0,%0; mtfsf 255,0" : : "m" (__tmp.__d) : "fr0"); \ } /* Default control word set at startup. */ |