X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Fconfig%2Fm68k%2Fmath-68881.h;h=6d9f8b2d4a1f8d39d47e0b02f13fac125cc48e4d;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=7b91bc56a5dbe450982cb1ab144abcde51021662;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/config/m68k/math-68881.h b/gcc/config/m68k/math-68881.h index 7b91bc56..6d9f8b2d 100644 --- a/gcc/config/m68k/math-68881.h +++ b/gcc/config/m68k/math-68881.h @@ -57,7 +57,7 @@ ({ \ double huge_val; \ \ - __asm ("fmove%.d %#0x7ff0000000000000,%0" /* Infinity */ \ + __asm ("fmove%.d #0x7ff0000000000000,%0" /* Infinity */ \ : "=f" (huge_val) \ : /* no inputs */); \ huge_val; \ @@ -135,10 +135,10 @@ atan2 (double y, double x) { double pi, pi_over_2; - __asm ("fmovecr%.x %#0,%0" /* extended precision pi */ + __asm ("fmovecr%.x #0,%0" /* extended precision pi */ : "=f" (pi) : /* no inputs */ ); - __asm ("fscale%.b %#-1,%0" /* no loss of accuracy */ + __asm ("fscale%.b #-1,%0" /* no loss of accuracy */ : "=f" (pi_over_2) : "0" (pi)); if (x > 0) @@ -178,7 +178,7 @@ atan2 (double y, double x) double value; errno = EDOM; - __asm ("fmove%.d %#0x7fffffffffffffff,%0" /* quiet NaN */ + __asm ("fmove%.d #0x7fffffffffffffff,%0" /* quiet NaN */ : "=f" (value) : /* no inputs */); return value; @@ -317,7 +317,7 @@ pow (double x, double y) double value; errno = EDOM; - __asm ("fmove%.d %#0x7fffffffffffffff,%0" /* quiet NaN */ + __asm ("fmove%.d #0x7fffffffffffffff,%0" /* quiet NaN */ : "=f" (value) : /* no inputs */); return value; @@ -333,7 +333,7 @@ pow (double x, double y) if (y == temp) { int i = (int) y; - + if ((i & 1) == 0) /* even */ return exp (y * log (-x)); else @@ -344,7 +344,7 @@ pow (double x, double y) double value; errno = EDOM; - __asm ("fmove%.d %#0x7fffffffffffffff,%0" /* quiet NaN */ + __asm ("fmove%.d #0x7fffffffffffffff,%0" /* quiet NaN */ : "=f" (value) : /* no inputs */); return value; @@ -497,7 +497,7 @@ frexp (double x, int *exp) double mantissa; __asm ("fgetexp%.x %1,%0" - : "=f" (float_exponent) /* integer-valued float */ + : "=f" (float_exponent) /* integer-valued float */ : "f" (x)); int_exponent = (int) float_exponent; __asm ("fgetman%.x %1,%0" @@ -505,7 +505,7 @@ frexp (double x, int *exp) : "f" (x)); if (mantissa != 0) { - __asm ("fscale%.b %#-1,%0" + __asm ("fscale%.b #-1,%0" : "=f" (mantissa) /* mantissa /= 2.0 */ : "0" (mantissa)); int_exponent += 1;