• [$] Maximal min() and max()

    From LWN.net@1337:1/100 to All on Thu Aug 1 14:30:05 2024
    [$] Maximal min() and max()

    Date:
    Thu, 01 Aug 2024 14:28:31 +0000

    Description:
    Like many projects written in C, the kernel makes extensive use of the C preprocessor; indeed, the kernel's use is rather more extensive than most.
    The preprocessor famously has a number of sharp edges associated with it.
    One might not normally think of increased compilation time as one of them, though. It turns out that some changes to a couple of conceptually simple preprocessor macros min() and max() led to some truly
    pathological, but hidden, behavior where those macros were used.

    ======================================================================
    Link to news story:
    https://lwn.net/Articles/983965/


    --- Mystic BBS v1.12 A47 (Linux/64)
    * Origin: tqwNet UK HUB @ hub.uk.erb.pw (1337:1/100)