PowerPC: Add fenv macros for long double
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 17 Apr 2014 18:39:01 +0000 (15:39 -0300)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 17 Apr 2014 19:01:51 +0000 (14:01 -0500)
This patch add the missing libc_<function>l_ctx macros for long
double.  Similar for float, they point to default double versions.

ChangeLog
sysdeps/powerpc/fpu/fenv_private.h

index 8b7acf3..9f67a67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/fpu/fenv_private.h
+       (libc_feholdexcept_setroundl_ctx): Define to
+       libc_feholdexcept_setround_ppc_ctx.
+       (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
+       (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
+       (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
+       (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
+
 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
 
        * sysdeps/aarch64/math-tests.h: New file.
index 327dbb3..50fcace 100644 (file)
@@ -260,15 +260,20 @@ libc_feresetround_ppc_ctx (struct rm_ctx *ctx)
     libc_feresetround_ppc (&ctx->env);
 }
 
-#define libc_feholdexcept_setroundf_ctx  libc_feholdexcept_setround_ppc_ctx
 #define libc_feholdexcept_setround_ctx   libc_feholdexcept_setround_ppc_ctx
+#define libc_feholdexcept_setroundf_ctx  libc_feholdexcept_setround_ppc_ctx
+#define libc_feholdexcept_setroundl_ctx  libc_feholdexcept_setround_ppc_ctx
 #define libc_fesetenv_ctx                libc_fesetenv_ppc_ctx
 #define libc_fesetenvf_ctx               libc_fesetenv_ppc_ctx
+#define libc_fesetenvl_ctx               libc_fesetenv_ppc_ctx
 #define libc_feholdsetround_ctx          libc_feholdsetround_ppc_ctx
 #define libc_feholdsetroundf_ctx         libc_feholdsetround_ppc_ctx
+#define libc_feholdsetroundl_ctx         libc_feholdsetround_ppc_ctx
 #define libc_feresetround_ctx            libc_feresetround_ppc_ctx
 #define libc_feresetroundf_ctx           libc_feresetround_ppc_ctx
-#define libc_feupdateenvf_ctx            libc_feupdateenv_ppc_ctx
+#define libc_feresetroundl_ctx           libc_feresetround_ppc_ctx
 #define libc_feupdateenv_ctx             libc_feupdateenv_ppc_ctx
+#define libc_feupdateenvf_ctx            libc_feupdateenv_ppc_ctx
+#define libc_feupdateenvl_ctx            libc_feupdateenv_ppc_ctx
 
 #endif