diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-11 11:20:10 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-11 11:20:10 +0100 |
| commit | 0d4c3e8f6be098e953502589b17cb28197322442 (patch) | |
| tree | df3a13e786769e78d3d6201150f4018dc0c22cb5 /libj2.7 | |
| parent | Test sat_add (diff) | |
| download | libj2-0d4c3e8f6be098e953502589b17cb28197322442.tar.gz libj2-0d4c3e8f6be098e953502589b17cb28197322442.tar.bz2 libj2-0d4c3e8f6be098e953502589b17cb28197322442.tar.xz | |
Finish signed saturated math
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libj2.7')
| -rw-r--r-- | libj2.7 | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -626,6 +626,12 @@ Left-shift a value, and detect overflow. .BR libj2_ju_lsh_overflow_p (3) Predict overflow of left-shifting a value. .TP +.BR libj2_j2i_sat_lsh (3), +.TQ +.BR libj2_j2i_sat_lsh_to_j2i (3), +.TQ +.BR libj2_ji_sat_lsh_to_j2i (3), +.TQ .BR libj2_j2u_sat_lsh (3), .TQ .BR libj2_j2u_sat_lsh_to_j2u (3), @@ -811,6 +817,16 @@ Calculate the sum of two values, and detect overflow. .BR libj2_ju_add_j2u_overflow_p (3) Predict whether adding two values will result in an overflow. .TP +.BR libj2_j2i_sat_add_j2i (3), +.TQ +.BR libj2_j2i_sat_add_j2i_to_j2i (3), +.TQ +.BR libj2_j2i_sat_add_ji (3), +.TQ +.BR libj2_j2i_sat_add_ji_to_j2i (3), +.TQ +.BR libj2_ji_sat_add_j2i_to_j2i (3), +.TQ .BR libj2_j2u_sat_add_j2u (3), .TQ .BR libj2_j2u_sat_add_j2u_to_j2u (3), @@ -916,6 +932,16 @@ Predict whether subtracting a value will result in an overflow. Predict whether subtracting a value will result in an overflow. These functions swap the position of the two operands. .TP +.BR libj2_j2i_sat_sub_j2i (3), +.TQ +.BR libj2_j2i_sat_sub_j2i_to_j2i (3), +.TQ +.BR libj2_j2i_sat_sub_ji (3), +.TQ +.BR libj2_j2i_sat_sub_ji_to_j2i (3), +.TQ +.BR libj2_ji_sat_sub_j2i_to_j2i (3), +.TQ .BR libj2_j2u_sat_sub_j2u (3), .TQ .BR libj2_j2u_sat_sub_j2u_to_j2u (3), @@ -930,6 +956,10 @@ These functions swap the position of the two operands. Calculate the difference between two values, but saturate on overflow. .TP +.BR libj2_j2i_sat_rsub_j2i (3), +.TQ +.BR libj2_j2i_sat_rsub_ji (3), +.TQ .BR libj2_j2u_sat_rsub_j2u (3), .TQ .BR libj2_j2u_sat_rsub_ju (3) @@ -1029,6 +1059,16 @@ Predict whether multiplying two values will result in an overflow, and if the prediction is costly, perform the multiplication. .TP +.BR libj2_j2i_sat_mul_j2i (3), +.TQ +.BR libj2_j2i_sat_mul_j2i_to_j2i (3), +.TQ +.BR libj2_j2i_sat_mul_ji (3), +.TQ +.BR libj2_j2i_sat_mul_ji_to_j2i (3), +.TQ +.BR libj2_ji_sat_mul_j2i_to_j2i (3), +.TQ .BR libj2_j2u_sat_mul_j2u (3), .TQ .BR libj2_j2u_sat_mul_j2u_to_j2u (3), |
