mirror of
https://github.com/status-im/nim-stew.git
synced 2025-02-16 22:17:03 +00:00
add references
This commit is contained in:
parent
391c2e24b1
commit
9ff33edb38
@ -20,7 +20,11 @@
|
||||
# * signed ops
|
||||
# * saturating ops
|
||||
# * more primitives commonly available on CPU:s / intrinsics (pow / divmod / etc)
|
||||
|
||||
#
|
||||
# References:
|
||||
# https://llvm.org/docs/LangRef.html#arithmetic-with-overflow-intrinsics
|
||||
# https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html
|
||||
# https://doc.rust-lang.org/std/primitive.u32.html#implementations
|
||||
|
||||
func addOverflow*(x, y: SomeUnsignedInt):
|
||||
tuple[result: SomeUnsignedInt, overflow: bool] =
|
||||
|
Loading…
x
Reference in New Issue
Block a user