]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
SH: Use fpu_control_t for the temporary FPU control word.
authorThomas Schwinge <thomas@codesourcery.com>
Sun, 27 May 2012 23:03:18 +0000 (01:03 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Sun, 27 May 2012 23:03:18 +0000 (01:03 +0200)
13 files changed:
ChangeLog
sysdeps/sh/sh4/fpu/fclrexcpt.c
sysdeps/sh/sh4/fpu/fedisblxcpt.c
sysdeps/sh/sh4/fpu/feenablxcpt.c
sysdeps/sh/sh4/fpu/fegetenv.c
sysdeps/sh/sh4/fpu/fegetexcept.c
sysdeps/sh/sh4/fpu/fegetround.c
sysdeps/sh/sh4/fpu/feholdexcpt.c
sysdeps/sh/sh4/fpu/fesetenv.c
sysdeps/sh/sh4/fpu/fesetround.c
sysdeps/sh/sh4/fpu/feupdateenv.c
sysdeps/sh/sh4/fpu/fsetexcptflg.c
sysdeps/sh/sh4/fpu/ftestexcept.c

index 3d1bc8f8924cfa2959aaa8cbc6f24bfddc95fcd2..9a5cd02dcebe1d7ab03fff30c6b17f0cc1d93523 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
+       the temporary FPU control word.
+       * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
+       * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
+       * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
+       * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
+       * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
+       * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
+       * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
+       * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
+       * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
+       * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
+       * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
+
 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
 
        * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
index c2df162fe2b1aee4223e114859934cd82f1a60ea..b4b2ead02c17f1a4fc9462403597322f7b6abf61 100644 (file)
@@ -1,5 +1,5 @@
 /* Clear given exceptions in current floating-point environment.
-   Copyright (C) 1998, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
 
@@ -23,7 +23,7 @@
 int
 feclearexcept (int excepts)
 {
-  int cw;
+  fpu_control_t cw;
 
   /* Mask out unsupported bits/exceptions.  */
   excepts &= FE_ALL_EXCEPT;
index 029fcc386a591a3b49797089b57abd85fd363884..b2938bae6f2c6aa1763319cc7ea677a44867df6c 100644 (file)
@@ -23,7 +23,7 @@
 int
 fedisableexcept (int excepts)
 {
-  unsigned int temp, old_exc;
+  fpu_control_t temp, old_exc;
 
   /* Get the current control register contents.  */
   _FPU_GETCW (temp);
index 93fa7498e5d0521d8610b53e51d5e6ef2bae641d..6d92c12bfd2b84e6fbf0d0fd594060da60be5078 100644 (file)
@@ -23,7 +23,7 @@
 int
 feenableexcept (int excepts)
 {
-  unsigned int temp, old_flag;
+  fpu_control_t temp, old_flag;
 
   /* Get current exceptions.  */
   _FPU_GETCW (temp);
index 3103316e3479779e3704ef00a5f74c09279d15a0..ca7de162852d5aebe16fec5db6d2e77dd4eda1bf 100644 (file)
@@ -22,7 +22,7 @@
 int
 fegetenv (fenv_t *envp)
 {
-  unsigned long int temp;
+  fpu_control_t temp;
   _FPU_GETCW (temp);
   /* When read fpscr, this was initialized.
      We need to rewrite value of temp. */
index a849a177564e88fde3fbb343a5675f6a2284063d..a2faaac3326965cb030158e3b2e95503316bc22e 100644 (file)
@@ -23,7 +23,7 @@
 int
 fegetexcept (void)
 {
-  unsigned int temp;
+  fpu_control_t temp;
 
   /* Get current exceptions.  */
   _FPU_GETCW (temp);
index 9108e97445b2440c3e751b63605ed2726d64cc52..73683831147ae8560e89d39c29892fa53cb97df2 100644 (file)
@@ -1,5 +1,5 @@
 /* Return current rounding direction.
-   Copyright (C) 1998, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1998-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Andreas Jaeger <aj@arthur.rhein-neckar.de>, 1998.
 
@@ -23,7 +23,7 @@
 int
 fegetround (void)
 {
-  int cw;
+  fpu_control_t cw;
 
   /* Get control word.  */
   _FPU_GETCW (cw);
index 2b6b9bdc83037af69349bfef0f77c0e5f979f645..40a58e1288bce7b2afbd5eab2689c4a86009f8ef 100644 (file)
@@ -1,6 +1,5 @@
 /* Store current floating-point environment and clear exceptions.
-   Copyright (C) 1997, 1998, 1999, 2000, 2005, 2010
-   Free Software Foundation, Inc.
+   Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,7 +22,7 @@
 int
 feholdexcept (fenv_t *envp)
 {
-  unsigned long int temp;
+  fpu_control_t temp;
 
   /* Store the environment.  */
   _FPU_GETCW (temp);
index 34d3461fc7b14b7f457ff0351fef7b6400e782a4..55fd1f66b170ead977d55947aa5c537331bc7b0a 100644 (file)
@@ -1,5 +1,5 @@
 /* Install given floating-point environment.
-   Copyright (C) 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -26,7 +26,7 @@ fesetenv (const fenv_t *envp)
       _FPU_SETCW (_FPU_DEFAULT);
   else
     {
-      unsigned long int temp = envp->__fpscr;
+      fpu_control_t temp = envp->__fpscr;
       _FPU_SETCW (temp);
     }
   return 0;
index 3269199ea9381a819367ba306b9ed33190728ac9..4edf9c5d888897ad0f16e8fd06980b4c7c807a1a 100644 (file)
@@ -23,7 +23,7 @@
 int
 fesetround (int round)
 {
-  unsigned int cw;
+  fpu_control_t cw;
 
   if ((round & ~0x3) != 0)
     /* ROUND is no valid rounding mode.  */
index 96a6979141006e49ff53cf8e9e6f5fcd2e37c5ed..41fb8a50635823debfd4624f7b3a696bd66eaaa1 100644 (file)
@@ -23,7 +23,7 @@
 int
 feupdateenv (const fenv_t *envp)
 {
-  unsigned int temp;
+  fpu_control_t temp;
 
   _FPU_GETCW (temp);
   temp = (temp & FE_ALL_EXCEPT);
index 40cd5ea38e2e921783a0ee570e42fc1ef415cc8f..ffed4b16c7e004ebb7de751bf7662579000173a9 100644 (file)
@@ -1,5 +1,5 @@
 /* Set floating-point environment exception handling.
-   Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,7 +23,7 @@
 int
 fesetexceptflag (const fexcept_t *flagp, int excepts)
 {
-  fexcept_t temp;
+  fpu_control_t temp;
 
   /* Get the current environment.  */
   _FPU_GETCW (temp);
index c2e1772a919560c3cd764200abedf08956633f40..c61af4ce0a3a4b666fa4e5947d666b6a9761d735 100644 (file)
@@ -1,5 +1,5 @@
 /* Test exception in current environment.
-   Copyright (C) 1997, 1998, 2000, 2010 Free Software Foundation, Inc.
+   Copyright (C) 1997-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -22,7 +22,7 @@
 int
 fetestexcept (int excepts)
 {
-  fexcept_t temp;
+  fpu_control_t temp;
 
   /* Get current exceptions.  */
   _FPU_GETCW (temp);