Lines Matching +full:fast +full:- +full:read
1 // SPDX-License-Identifier: GPL-2.0
16 * bch2_varint_encode - encode a variable length integer
19 * Returns: size in bytes of the encoded integer - at most 9 bytes
29 v |= ~(~0 << (bytes - 1)); in bch2_varint_encode()
42 * bch2_varint_decode - encode a variable length integer
46 * Returns: size in bytes of the decoded integer - or -1 on failure (would
47 * have read past the end of the buffer)
57 return -BCH_ERR_varint_decode_error; in bch2_varint_decode()
74 * bch2_varint_encode_fast - fast version of bch2_varint_encode
77 * Returns: size in bytes of the encoded integer - at most 9 bytes
89 v |= ~(~0U << (bytes - 1)); in bch2_varint_encode_fast()
100 * bch2_varint_decode_fast - fast version of bch2_varint_decode
104 * Returns: size in bytes of the decoded integer - or -1 on failure (would
105 * have read past the end of the buffer)
107 * This version assumes that it is safe to read at most 8 bytes past the end of
119 return -BCH_ERR_varint_decode_error; in bch2_varint_decode_fast()