mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Rename __bco to _fast
This commit is contained in:
1 parent
13284015cb
commit
8a449fa92e
13 files changed
+61
-61
No files matched your search
+5
-5
@@ -2657,7 +2657,7 @@ static inline uint32_t wuffs_base__io_writer__copy_n_from_history(
|
||||
// copy_n_from_history Wuffs method should also take an unroll hint argument,
|
||||
// and the cgen can look if that argument is the constant expression '3'.
|
||||
//
|
||||
// See also wuffs_base__io_writer__copy_n_from_history__bco below.
|
||||
// See also wuffs_base__io_writer__copy_n_from_history_fast below.
|
||||
//
|
||||
// Alternatively, or additionally, have a sloppy_copy_n_from_history method
|
||||
// that copies 8 bytes at a time, possibly writing more than length bytes?
|
||||
@@ -2673,13 +2673,13 @@ static inline uint32_t wuffs_base__io_writer__copy_n_from_history(
|
||||
return length;
|
||||
}
|
||||
|
||||
// wuffs_base__io_writer__copy_n_from_history__bco is a Bounds Check Optimized
|
||||
// version of the wuffs_base__io_writer__copy_n_from_history function above.
|
||||
// The caller needs to prove that:
|
||||
// wuffs_base__io_writer__copy_n_from_history_fast is like the
|
||||
// wuffs_base__io_writer__copy_n_from_history function above, but has stronger
|
||||
// pre-conditions. The caller needs to prove that:
|
||||
// - distance > 0
|
||||
// - distance <= (*ptr_ptr - start)
|
||||
// - length <= (end - *ptr_ptr)
|
||||
static inline uint32_t wuffs_base__io_writer__copy_n_from_history__bco(
|
||||
static inline uint32_t wuffs_base__io_writer__copy_n_from_history_fast(
|
||||
uint8_t** ptr_ptr,
|
||||
uint8_t* start,
|
||||
uint8_t* end,
|
||||
|
||||
Reference in new issue
Block a user