OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:vli
(Results
1 - 7
of
7
) sorted by relevancy
/src/external/public-domain/xz/dist/src/liblzma/common/
vli_size.c
16
lzma_vli_size(lzma_vli
vli
)
18
if (
vli
> LZMA_VLI_MAX)
23
vli
>>= 7;
25
} while (
vli
!= 0);
vli_encoder.c
16
lzma_vli_encode(lzma_vli
vli
, size_t *vli_pos,
37
if (*vli_pos >= LZMA_VLI_BYTES_MAX ||
vli
> LZMA_VLI_MAX)
40
// Shift
vli
so that the next bits to encode are the lowest. In
41
// single-call mode this never changes
vli
since *vli_pos is zero.
42
vli
>>= *vli_pos * 7;
45
while (
vli
>= 0x80) {
53
out[*out_pos] = (uint8_t)(
vli
) | 0x80;
54
vli
>>= 7;
62
out[*out_pos] = (uint8_t)(
vli
);
vli_decoder.c
16
lzma_vli_decode(lzma_vli *restrict
vli
, size_t *vli_pos,
24
*
vli
= 0;
34
// Initialize *
vli
when starting to decode a new integer.
36
*
vli
= 0;
40
|| (*
vli
>> (*vli_pos * 7)) != 0)
53
// Add the newly read byte to *
vli
.
54
*
vli
+= (lzma_vli)(byte & 0x7F) << (*vli_pos * 7);
index.h
46
vli_ceil4(lzma_vli
vli
)
48
assert(
vli
<= UNPADDED_SIZE_MAX);
49
return (
vli
+ 3) & ~LZMA_VLI_C(3);
/src/external/public-domain/xz/dist/src/liblzma/api/lzma/
vli.h
4
* \file lzma/
vli
.h
15
* one encoded representation. The maximum number of bits in a
VLI
is 63,
16
* thus the
vli
argument must be less than or equal to UINT64_MAX / 2. You
35
* \brief
VLI
value to denote that the value is unknown
45
* \brief
VLI
constant suffix
53
* Valid
VLI
values are in the range [0, LZMA_VLI_MAX]. Unknown value is
70
* \return True if the integer is representable as a
VLI
or if it
73
#define lzma_vli_is_valid(
vli
) \
74
((
vli
) <= LZMA_VLI_MAX || (
vli
) == LZMA_VLI_UNKNOWN
[
all
...]
/src/external/public-domain/xz/dist/tests/
test_vli.c
6
/// \brief Tests liblzma
vli
functions
15
// Pre-encoded
VLI
values for testing
16
//
VLI
can have between 1 and 9 bytes when encoded
55
// First test invalid
VLI
values (should return 0)
56
//
VLI
UNKNOWN is an invalid
VLI
58
// Loop over a few
VLI
values just over the maximum
63
lzma_vli
vli
= 1;
local
64
for (uint32_t i = 1; i < LZMA_VLI_BYTES_MAX; i++,
vli
<<= 7) {
66
assert_uint_eq(lzma_vli_size(
vli
), i)
[
all
...]
/src/external/public-domain/xz/lib/
Makefile
13
stream_flags.h version.h
vli
.h
Completed in 21 milliseconds
Indexes created Sat Apr 25 00:22:52 UTC 2026