Files
David Laight f65d38155a x86/div64: Fix addition of large constants in mul_u64_add_u64_div_u64()
Adding constants over 2^31 fails to compile because the ADD instruction only
supports 32bit signed immediates.

Replace the "irm" constraint with "erm" so that the compiler loads large
constants into a register.

Found by a patch to drivers/iio/frequency/ad9910.c

  [ bp: Massage commit message. ]

Fixes: 6480241f31 ("lib: add mul_u64_add_u64_div_u64() and mul_u64_u64_div_u64_roundup()")
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: H. Peter Anvin <hpa@zytor.com>
Link: https://patch.msgid.link/20260803094702.3852-2-david.laight.linux@gmail.com
2026-09-10 10:40:22 -07:00
..
2025-05-31 09:40:40 +02:00
…
…
…
…
…
…
…
…
2025-11-24 16:08:18 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-09-04 21:59:09 +02:00
2026-08-06 13:18:31 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-05-26 16:21:12 +02:00
…
…
…
…
…
2026-06-08 13:16:35 +02:00
…
…
…
2026-01-20 19:24:40 -08:00
…
…
…
…
…
…
…
2026-05-07 13:19:16 +02:00
…
…
…
…
2026-07-23 09:30:29 -07:00
2025-04-16 15:36:23 +08:00
…
2026-05-10 14:55:07 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-02-06 14:51:03 -08:00