Team-Fly
Previous Section Next Section

A.2 Basic Calculations

int
add_l (CLINT a_l, CLINT b_l,
     CLINT s_l)

addition: sum of a_l and b_l, output in s_l

int
uadd_l (CLINT a_l, USHORT b,
     CLINT s_l)

mixed addition: sum of a_l and b, output in s_l

int
inc_l (CLINT a_l)

increment a_l

int
sub_l (CLINT a_l, CLINT b_l,
     CLINT s_l)

subtraction: difference of a_l and b_l, output in s_l

int
usub_l (CLINT a_l, USHORT b,
     CLINT c_l)

mixed subtraction: difference of a_l and b, output in s_l

int
dec_l (CLINT a_l)

decrement a_l

int
mul_l (CLINT a_l, CLINT b_l,
     CLINT p_l)

multiplication: product of a_l and b_l, output in p_l

int
umul_l (CLINT a_l, USHORT b,
     CLINT p_l)

mixed multiplication: product of a_l and b, output in p_l

int
sqr_l (CLINT a_l, CLINT p_l)

square a_l, output in p_l

int
div_l (CLINT a_l,
CLINT b_l, CLINT q_l, CLINT
r_l)

division with remainder: division of a_l by b_l, quotient in q_l, remainder in r_l

int
udiv_l (CLINT a_l, USHORT b,
     CLINT q_l, CLINT r_l)

mixed division with remainder: division of a_l by b, quotient in q_l, remainder in r_l


Team-Fly Previous Section Next Section