#define ceildiv(n, d) (( (n)+(d)-1 ) / (d)) /* ceil(n/d) */
#define floorlog2(x) (64-__builtin_clzll(x)-1) /* floor(log2(x)) */
Conversation
Notices
-
Embed this notice
Luke T. Shumaker (lukeshu@fosstodon.org)'s status on Tuesday, 12-Nov-2024 15:42:38 JST Luke T. Shumaker