On 9/14/22 04:35, Bruno Haible wrote:
-# define _Static_assert(...) \
- _GL_VERIFY (__VA_ARGS__, "static assertion failed", -)
+# define _Static_assert(R, ...) \
+ _GL_VERIFY ((R), "static assertion failed", -)
Unfortunately this doesn't conform to strict C99, which requires the
upda
On 12/28/22 01:07, Ondrej Valousek wrote:
I was actually wondering why did not you reuse the suggestion from Andreas:
# define ROUNDUP(x, y) (((x) + (y) - 1) & - (y))
It didn't work when the + overflowed, and it assumed two's complement.
The latter assumption is pretty safe n
Thanks Paul,
I was actually wondering why did not you reuse the suggestion from Andreas:
# define ROUNDUP(x, y) (((x) + (y) - 1) & - (y))
As it seemed to work pretty well to me (+ it makes obvious what we do here).
Anyhow, my 2 cents 😊
-Original Message-
From: Paul Eggert