add references

This commit is contained in:
Jacek Sieka 2023-05-09 21:34:08 +02:00
parent 391c2e24b1
commit 9ff33edb38
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8

View File

@ -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] =