diff options
author | Chris Metcalf <cmetcalf@ezchip.com> | 2015-01-05 11:59:32 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@ezchip.com> | 2015-01-05 11:59:32 -0500 |
commit | 1dca195e1c50d69fa4f0d18e821ec68f5d286df4 (patch) | |
tree | cccf48935689a483d2a815cd8d5d82f5718ce55c /sysdeps/tile | |
parent | ab70da77ea8076b49ad81a8c06103c51d4e81dc4 (diff) | |
download | glibc-1dca195e1c50d69fa4f0d18e821ec68f5d286df4.tar glibc-1dca195e1c50d69fa4f0d18e821ec68f5d286df4.tar.gz glibc-1dca195e1c50d69fa4f0d18e821ec68f5d286df4.tar.bz2 glibc-1dca195e1c50d69fa4f0d18e821ec68f5d286df4.zip |
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/tile')
-rw-r--r-- | sysdeps/tile/sysdep.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/tile/sysdep.h b/sysdeps/tile/sysdep.h index ead9dba0b4..7b3d8739d2 100644 --- a/sysdeps/tile/sysdep.h +++ b/sysdeps/tile/sysdep.h @@ -108,3 +108,7 @@ #endif #endif /* __ASSEMBLER__ */ + +/* On tilegx, 32-bit values must have their high 32 bits sign extended; + random values are not allowed. */ +#define REGISTER_CAST_INT32_TO_INT64 1 |