Arithmetic operations
These API functions perform operations that are equivalent to using Alore operators such as +, / and **. Therefore they support multiple operand types and operator overloading, in a similar fashion to the Alore operators.
All of these functions may raise direct or normal exceptions.
- AValue AAdd(AThread *t, AValue a, AValue b)
- Return the result of a + b.
- AValue ASub(AThread *t, AValue a, AValue b)
- Return the result of a - b.
- AValue AMul(AThread *t, AValue a, AValue b)
- Return the result of a * b.
- AValue ADiv(AThread *t, AValue a, AValue b)
- Return the result of a / b.
- AValue AIntDiv(AThread *t, AValue a, AValue b)
- Return the result of a div b.
- AValue AMod(AThread *t, AValue a, AValue b)
- Return the result of a mod b.
- AValue APow(AThread *t, AValue a, AValue b)
- Return the result of a**b.
- AValue ANeg(AThread *t, AValue a)
- Return the result of -a.