7 Commits

Author SHA1 Message Date
f073276bc5 Use least vs fast int types 2025-12-23 14:11:06 +01:00
6bf47f0ca6 Refactor to use portable minimum-width integers.
The signed and unsigned fixed-width integers (int32_t, uint32_t etc.) are optional
in C99 (and above). Use the non-optional minimum-width integers (int_fast32_t, uint_fast32_t and int_least32_t, uint_least32_t etc.) instead.

To simulate unsigned wrap-around, use the GUF_UWRAP macros in guf_common.h

cf. https://en.cppreference.com/w/c/types/integer (last-retrieved: 2025-05-18)
2025-12-23 14:11:06 +01:00
1a5a32d9b9 Prevent more potential int promotion bugs 2025-12-23 14:11:06 +01:00
26bab4efbe Use better terminology for overflow and integer 'underflow' 2025-12-23 14:11:06 +01:00
5828c4ecec Change C/CXX flags 2025-12-23 14:11:05 +01:00
5cb2f240e0 Fix implementation defined behaviour in guf_wrapping_mul 2025-12-23 14:11:05 +01:00
dd4155d944 Add math_ckdint tests 2025-12-23 14:11:05 +01:00