summaryrefslogtreecommitdiff
path: root/docs/group__posix.js
diff options
context:
space:
mode:
authorJim Huang <jserv.tw@gmail.com>2019-07-07 12:56:40 +0800
committerJim Huang <jserv.tw@gmail.com>2019-07-16 05:28:59 +0800
commitafd981d0088772b1d248b66fc171cc3c78161a34 (patch)
tree8c0f3083768bfd65e53f64cf2d61406edeaa250a /docs/group__posix.js
parent49ceb4d018f264bd4757df1ab3173d0760850af1 (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