Signed overflow optimization hazards in the kernel
Signed overflow optimization hazards in the kernel
Posted Aug 16, 2012 21:10 UTC (Thu) by daney (guest, #24551)In reply to: Signed overflow optimization hazards in the kernel by jmspeex
Parent article: Signed overflow optimization hazards in the kernel
> Actually, signed-integer overflow was undefined long before C11.
> It was definitely undefined in C99 and I'm pretty sure it also was in C89.
> It was definitely undefined in C99 and I'm pretty sure it also was in C89.
The first edition of K & R explicitly states the signed-integer overflow is undefined. This has carried through to the present.
