jun
c54fc75221
Use least vs fast int types
2025-05-19 09:50:05 +02:00
jun
096b83638b
Fix guf_id_pool integer portability
2025-05-19 00:42:27 +02:00
jun
57f0e47efc
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-05-18 22:03:03 +02:00
jun
7ec2af0c33
Add unsigned integer wrapping functions
2025-05-16 13:44:27 +02:00
jun
7585848ac9
Prevent more potential int promotion bugs
2025-05-15 13:24:29 +02:00
jun
6091eac820
Add guf_math_ckdint IMPL_STATIC etc.
2025-05-13 14:56:21 +02:00
jun
9c417d2aa1
Add checked arithmetic
2025-05-11 08:55:03 +02:00
jun
d062784425
Add separate 32/64 bit versions to guf_rand
2025-03-29 01:55:32 +01:00
jun
6a7bd2bd97
Use single u32/u64 as GUF_DICT_KV_META_T instead of two
2025-03-19 15:23:32 +01:00
jun
e535d39e3d
Fix allocation overflow for guf_dbuf and guf_dict
...
(Implement GUF_ALLOC_MAX_BYTES and GUF_ALLOC_MAX_CAPACITY).
2025-03-18 13:43:36 +01:00
jun
ad884ee1e9
Implement guf_str
2025-03-17 21:17:07 +01:00
jun
9096a4f9c9
Add guf_nearly_zero/one
2025-03-07 13:42:28 +01:00
jun
e489dd694b
Add quaternion operations
2025-03-06 11:52:24 +01:00
jun
fc8118c182
Add linear algebra functions
2025-03-04 12:30:02 +01:00
jun
301477f5c6
Add GUF_CSTR_TO_VIEW_CPP
2025-03-04 08:01:41 +01:00
jun
cd1c1cd5db
Refactor
2025-03-02 18:25:54 +01:00
jun
81fc19aa85
Work on guf_dict
2025-02-19 08:18:18 +01:00
jun
22ebd8aa05
Add guf_rand with 32-bit operations (using xoshiro128** 1.1)
2025-02-18 20:06:59 +01:00
jun
f911933588
Fix overflow in guf_rand32range_i32 and guf_randrange_i64
2025-02-15 18:04:53 +01:00
jun
500fd47986
Add guf_rand32
2025-02-15 04:36:58 +01:00
jun
6b222eafc1
Add guf_rand
2025-02-15 03:00:15 +01:00