diff options
author | Jim Huang <jserv.tw@gmail.com> | 2019-07-07 12:56:40 +0800 |
---|---|---|
committer | Jim Huang <jserv.tw@gmail.com> | 2019-07-16 05:28:59 +0800 |
commit | afd981d0088772b1d248b66fc171cc3c78161a34 (patch) | |
tree | 8c0f3083768bfd65e53f64cf2d61406edeaa250a /docs/group__posix.js | |
parent | 49ceb4d018f264bd4757df1ab3173d0760850af1 (diff) |
Use checked unsigned multiplication extension of GCC/Clang
Most processors have carry flags which they set on addition overflow, so
it is a good idea to access them whenever possible. Most of them also
have widening multiply instructions that can be used to detect overflow
of the non-widening version. Both GCC and Clang offer a way to detect an
overflow for security critical applications.
Reference:
https://clang.llvm.org/docs/LanguageExtensions.html#checked-arithmetic-builtins
Diffstat (limited to 'docs/group__posix.js')
0 files changed, 0 insertions, 0 deletions