We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f318498 commit b2a723aCopy full SHA for b2a723a
inline.h
@@ -3425,8 +3425,10 @@ S_lossless_NV_to_IV(const NV nv, IV *ivp)
3425
# endif
3426
# ifndef IV_MUL_OVERFLOW_IS_EXPENSIVE
3427
/* Strict overflow check for IV multiplication is generally expensive
3428
- * when IV is a multi-word integer. */
3429
-# define IV_MUL_OVERFLOW_IS_EXPENSIVE (IVSIZE > LONGSIZE)
+ * when IV is a multi-word integer.
+ * We assume that PTRSIZE matches the platform word size; LONGSIZE might not
3430
+ * match for LLP64 platforms such as Win32 x86-64. */
3431
+# define IV_MUL_OVERFLOW_IS_EXPENSIVE (IVSIZE > PTRSIZE)
3432
3433
3434
# if defined(I_STDCKDINT) && !IV_ADD_SUB_OVERFLOW_IS_EXPENSIVE
0 commit comments