|
|
Subscribe / Log in / New account

Better handling of integer wraparound in the kernel

Better handling of integer wraparound in the kernel

Posted Jan 27, 2024 23:30 UTC (Sat) by ballombe (subscriber, #9523)
In reply to: Better handling of integer wraparound in the kernel by donald.buczek
Parent article: Better handling of integer wraparound in the kernel

> gcc understands `__builtin_add_overflow` since 5.1 (2015) and clang since 3.8 (2016) .

Thanks. Most gcc builtin are CPU-specific. It seems these ones are an exception!


to post comments


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