On 3/24/26 05:45, Pádraig Brady wrote:
getc() and putchar() should also avoid function calls,
and degenerate via inlining and  macros to directly manipulate stdio mem,
periodically calling __uflow() and __overflow() respectively.

That also confused me.

Also, the proposed optimization is valid if USE_UNLOCKED_IO is defined, but otherwise it can have undefined behavior.


Reply via email to