Manual

54 Functions
Table 13. Binary Arithmetic Operators
Short
Name
Function
add void s32_add(const s32_type *arg1, const s32_type *arg2,
s32_type *arg3);
Adds two signed 32-bit integers. (arg3 = arg1 + arg2).
sub void s32_sub(const s32_type *arg1, const s32_type *arg2,
s32_type *arg3);
Subtracts two signed 32-bit integers. (arg3 = arg1 - arg2).
mul void s32_mul(const s32_type *arg1, const s32_type *arg2,
s32_type *arg3);
Multiplies two signed 32-bit integers. (arg3 = arg1 *arg2).
div void s32_div(const s32_type *arg1, const s32_type *arg2,
s32_type *arg3);
Divides two signed 32-bit integers. (arg3 = arg1 / arg2).
rem void s32_rem(const s32_type *arg1, const s32_type *arg2,
s32_type *arg3);
Returns the remainder of the division of two signed 32-bit integers (arg3
= arg1 % arg2). The sign of arg3 is always the same as the sign of arg1.
max void s32_max(const s32_type *arg1, const s32_type *arg2,
s32_type *arg3);
Returns the maximum of two signed 32-bit integers. (arg3 = max(arg1,
arg2)).
min void s32_min(const s32_type *arg1, const s32_type *arg2,
s32_type *arg3);
Returns the minimum of two signed 32-bit integers. (arg3 = min(arg1,
arg2)).
Unary Arithmetic Operators
Table 14 lists the unary arithmetic operator functions.
Table 14. Unary Arithmetic Operators
Short
Name
Function
abs void s32_abs(const s32_type *arg1, s32_type *arg2);
Returns the absolute value of a signed 32-bit integer. (arg2 = abs(arg1)).