Source/Packages

Std.Word

packages/foundation/standard/src/Std/Word.alpha

1,783 lines192 declarations64.2 KiBSHA-256 27bf8c3f30ee

def · lines 260–263

stdI64AddWrapping

Full file
I64 signed add / subtract: in two's complement these ARE the wrapping bit ops on the underlying word (the sign falls out of the representation).
260def stdI64AddWrapping =
261  (lambda unrestricted a : (family StdI64) .
262    (lambda unrestricted b : (family StdI64) .
263      (stdI64FromWord (modelWord64Add (stdI64ToWord a) (stdI64ToWord b)))))

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.