diff options
| author | Mattias Andrée <m@maandree.se> | 2025-12-06 10:21:36 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2025-12-06 10:21:36 +0100 |
| commit | c28859c3e10c84fd9f81ebf88336c9b693448eeb (patch) | |
| tree | 22f9804f4ba96474c23c93c021d293ba5959ccfa /libj2_ju_rsh_to_j2u.c | |
| parent | Second commit (diff) | |
| download | libj2-c28859c3e10c84fd9f81ebf88336c9b693448eeb.tar.gz libj2-c28859c3e10c84fd9f81ebf88336c9b693448eeb.tar.bz2 libj2-c28859c3e10c84fd9f81ebf88336c9b693448eeb.tar.xz | |
Add overflow and underflow prediction functions
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libj2_ju_rsh_to_j2u.c')
| -rw-r--r-- | libj2_ju_rsh_to_j2u.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libj2_ju_rsh_to_j2u.c b/libj2_ju_rsh_to_j2u.c index 7c5913f..5c4c891 100644 --- a/libj2_ju_rsh_to_j2u.c +++ b/libj2_ju_rsh_to_j2u.c @@ -93,6 +93,8 @@ check(const char *pattern) r = (struct libj2_j2u){111, 222}; EXPECT(libj2_ju_rsh_to_j2u_underflow(a.low, i, &r) == underflows); EXPECT(libj2_j2u_eq_j2u(&r, &expected)); + + EXPECT(libj2_ju_rsh_underflow_p(a.low, i) == underflows); } } |
