|
|
Subscribe / Log in / New account

Signed overflow optimization hazards in the kernel

Signed overflow optimization hazards in the kernel

Posted Aug 23, 2012 9:47 UTC (Thu) by reddit (guest, #86331)
Parent article: Signed overflow optimization hazards in the kernel

The sensible way to do this is (int)(a - b) < 0 where a and b are unsigned.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds