mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
1 parent
cac4df3bde
commit
8cfe304f3c
7 files changed
+2662
No files matched your search
@@ -170,6 +170,14 @@ wuffs_base__u64__sat_sub_indirect(uint64_t* x, uint64_t y) {
|
||||
*x = wuffs_base__u64__sat_sub(*x, y);
|
||||
}
|
||||
|
||||
// ---------------- Numeric Types (Utility)
|
||||
|
||||
#define wuffs_base__utility__sign_extend_convert_u16_u32(a) \
|
||||
((uint32_t)(int32_t)(int16_t)(a))
|
||||
|
||||
#define wuffs_base__utility__sign_extend_rshift_u32(a, n) \
|
||||
((uint32_t)(((int32_t)(a)) >> (n)))
|
||||
|
||||
// ---------------- Slices and Tables
|
||||
|
||||
// wuffs_base__slice_u8__prefix returns up to the first up_to bytes of s.
|
||||
|
||||
Reference in new issue
Block a user