about summary refs log tree commit diff
path: root/sysdeps/generic/math-type-macros.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-05-16 06:03:08 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-05-16 06:03:08 +0200
commit9761bf4dfae04016bccaa82414719523b090dd60 (patch)
tree1abcf3d350f8540e87f3850cb111a13cfaf66d8f /sysdeps/generic/math-type-macros.h
parent69a01461ee1417578d2ba20aac935828b50f1118 (diff)
downloadglibc-9761bf4dfae04016bccaa82414719523b090dd60.tar.gz
glibc-9761bf4dfae04016bccaa82414719523b090dd60.tar.xz
glibc-9761bf4dfae04016bccaa82414719523b090dd60.zip
math: Merge strtod_nan_*.h into math-type-macros-*.h
This change will eventually make it possible to compile
stdlib/strtod_nan_main.c as part of math/s_nan_template.c.
Diffstat (limited to 'sysdeps/generic/math-type-macros.h')
-rw-r--r--sysdeps/generic/math-type-macros.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sysdeps/generic/math-type-macros.h b/sysdeps/generic/math-type-macros.h
index ffcf7b80b6..0e8ef16d7a 100644
--- a/sysdeps/generic/math-type-macros.h
+++ b/sysdeps/generic/math-type-macros.h
@@ -40,7 +40,11 @@
 
   declare_mgen_alias_r(from,to)
       This exposes the appropriate symbol(s) for a
-      function f_r of type FLOAT.  */
+      function f_r of type FLOAT.
+
+  SET_NAN_PAYLOAD(flt, mant)
+      Set the NaN payload bits of the variable FLT of type FLOAT to
+      the mantissa MANT.  */
 
 #ifndef M_PFX
 # error "M_PFX must be defined."
@@ -66,6 +70,9 @@
 #ifndef declare_mgen_alias_r
 # error "declare_mgen_alias_r must be defined."
 #endif
+#ifndef SET_NAN_PAYLOAD
+# error "SET_NAN_PAYLOAD must be defined."
+#endif
 
 #define __M_CONCAT(a,b) a ## b
 #define __M_CONCATX(a,b) __M_CONCAT(a,b)