Lines Matching +full:fast +full:- +full:read
1 // SPDX-License-Identifier: GPL-2.0
15 * bch2_varint_encode - encode a variable length integer
18 * Returns: size in bytes of the encoded integer - at most 9 bytes
28 v |= ~(~0 << (bytes - 1)); in bch2_varint_encode()
41 * bch2_varint_decode - encode a variable length integer
45 * Returns: size in bytes of the decoded integer - or -1 on failure (would
46 * have read past the end of the buffer)
56 return -1; in bch2_varint_decode()
73 * bch2_varint_encode_fast - fast version of bch2_varint_encode
76 * Returns: size in bytes of the encoded integer - at most 9 bytes
88 v |= ~(~0U << (bytes - 1)); in bch2_varint_encode_fast()
99 * bch2_varint_decode_fast - fast version of bch2_varint_decode
103 * Returns: size in bytes of the decoded integer - or -1 on failure (would
104 * have read past the end of the buffer)
106 * This version assumes that it is safe to read at most 8 bytes past the end of
118 return -1; in bch2_varint_decode_fast()