aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@ezchip.com>2015-01-05 11:59:32 -0500
committerChris Metcalf <cmetcalf@ezchip.com>2015-01-05 11:59:32 -0500
commit1dca195e1c50d69fa4f0d18e821ec68f5d286df4 (patch)
treecccf48935689a483d2a815cd8d5d82f5718ce55c /sysdeps/x86_64
parentab70da77ea8076b49ad81a8c06103c51d4e81dc4 (diff)
downloadglibc-1dca195e1c50d69fa4f0d18e821ec68f5d286df4.zip
glibc-1dca195e1c50d69fa4f0d18e821ec68f5d286df4.tar.gz
glibc-1dca195e1c50d69fa4f0d18e821ec68f5d286df4.tar.bz2
lround: provide cast for wordsize-64 version if needed
Platforms with 64-bit registers where 32-bit values need to have the high 32 bits set in a particular way need to have an explicit cast when using the 64-bit sysdeps/ieee754/dbl-64/wordsize-64 version of llround() as lround(). This includes tilegx32, and likely MIPS. x32 does not need this, and AArch64 ILP32 will not either. Require it to be specified in sysdep.h to be explicit.
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/x32/sysdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/x86_64/x32/sysdep.h b/sysdeps/x86_64/x32/sysdep.h
index 9b87005..0cbc1a0 100644
--- a/sysdeps/x86_64/x32/sysdep.h
+++ b/sysdeps/x86_64/x32/sysdep.h
@@ -90,3 +90,7 @@
# define R15_LP "r15d"
#endif /* __ASSEMBLER__ */
+
+/* On x32, it is not required to normalize a 64-bit value before using
+ it as a 32-bit value. */
+#define REGISTER_CAST_INT32_TO_INT64 0