int64_sub


Description:

[ CCode ( cname = "gpseq_overflow_int64_sub" ) ]
public bool int64_sub (int64 a, int64 b, out int64 result = null)

Performs an operation that subtracts b from a and returns the result, with checking whether the operation overflowed.

If the operation not overflowed, sets result to the result of the operation and returns false. If the operation overflowed, set result to the operation result wrapped around and returns true.

Parameters:

a

an integer

b

an integer

result

returns the result of the arithmetic operation

Returns:

true if the operation overflowed, and false otherwise


Namespace: Gpseq.Overflow
Package: gpseq-1.0



2022 vala-language.org