On 7/19/21 2:01 AM, Peter Maydell wrote:
-static inline void qatomic_set_u64(uint64_t *ptr, uint64_t val) -{ - qatomic_set__nocheck(ptr, val); -}
...
+#define qatomic_set_u64 qatomic_set__nocheckPreviously if you tried to do qatomic_set_i64() etc on something that wasn't an int64_t*, the compiler would complain. Now it will silently store a different-sized value, I think. Is there a way to retain the typechecking in the macro versions?
I can add a trivial _Generic wrapper. r~
