Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 1711) sorted by relevance

12345678910>>...69

/freebsd/contrib/kyua/utils/
H A Dunits_test.cpp98 ATF_REQUIRE_EQ(units::bytes(TB), units::bytes::parse("1T")); in ATF_TEST_CASE_BODY()
99 ATF_REQUIRE_EQ(units::bytes(TB), units::bytes::parse("1t")); in ATF_TEST_CASE_BODY()
111 ATF_REQUIRE_EQ(units::bytes(GB), units::bytes::parse("1G")); in ATF_TEST_CASE_BODY()
112 ATF_REQUIRE_EQ(units::bytes(GB), units::bytes::parse("1g")); in ATF_TEST_CASE_BODY()
124 ATF_REQUIRE_EQ(units::bytes(MB), units::bytes::parse("1M")); in ATF_TEST_CASE_BODY()
185 units::bytes bytes; in ATF_TEST_CASE_BODY() local
188 ATF_REQUIRE_EQ(units::bytes(12 * units::MB), bytes); in ATF_TEST_CASE_BODY()
197 units::bytes bytes; in ATF_TEST_CASE_BODY() local
200 ATF_REQUIRE_EQ(units::bytes(12 * units::MB), bytes); in ATF_TEST_CASE_BODY()
213 units::bytes bytes(123456789); in ATF_TEST_CASE_BODY() local
[all …]
H A Dunits.cpp45 units::bytes::bytes(void) : in bytes() function in units::bytes
54 units::bytes::bytes(const uint64_t count_) : in bytes() function in units::bytes
67 units::bytes
68 units::bytes::parse(const std::string& in_str) in parse()
105 return bytes(uint64_t(count * multiplier)); in parse()
113 units::bytes::format(void) const in format()
130 units::bytes::operator uint64_t(void) const in operator uint64_t()
146 units::operator>>(std::istream& input, bytes& rhs) in operator >>()
152 rhs = bytes::parse(word); in operator >>()
169 units::operator<<(std::ostream& output, const bytes& rhs) in operator <<()
/freebsd/stand/libsa/
H A Dzalloc.c98 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in znalloc()
100 if (bytes == 0) in znalloc()
156 mp->mp_Used += bytes; in znalloc()
181 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in zfree()
183 if (bytes == 0) in zfree()
198 mp->mp_Used -= bytes; in zfree()
213 (uintmax_t)bytes); in zfree()
223 bytes + mn->mr_Bytes; in zfree()
248 (uintmax_t)bytes); in zfree()
283 mp->mp_Used = bytes; in zextendPool()
[all …]
H A Dzalloc_malloc.c59 return (Malloc_align(bytes, 1)); in Malloc()
69 return (Malloc_align(bytes, alignment)); in Memalign()
73 Malloc_align(size_t bytes, size_t alignment) in Malloc_align() argument
78 bytes += MALLOCALIGN + 1; in Malloc_align()
80 bytes += MALLOCALIGN; in Malloc_align()
99 res->ga_Bytes = bytes; in Malloc_align()
101 *((signed char *)res + bytes - 1) = -2; in Malloc_align()
110 size_t bytes; in Free() local
145 bytes = res->ga_Bytes; in Free()
146 zfree(&MallocPool, res, bytes); in Free()
[all …]
/freebsd/contrib/bionic-x86_64-string/
H A Dsse4-memcmp-slm.S830 L(16bytes):
835 L(8bytes):
849 L(4bytes):
854 L(0bytes):
887 L(9bytes):
911 L(5bytes):
976 L(6bytes):
981 L(2bytes):
1044 L(7bytes):
1057 L(3bytes):
[all …]
/freebsd/sys/amd64/pci/
H A Dpci_cfgreg.c53 int reg, int bytes);
59 unsigned bytes);
112 bytes)); in pci_docfgregread()
137 if (reg == PCIR_INTLINE && bytes == 1) { in pci_cfgregread()
152 int bytes) in pci_cfgregwrite() argument
165 bytes); in pci_cfgregwrite()
186 (unsigned)bytes <= 4 && (reg & (bytes - 1)) == 0) { in pci_cfgenable()
214 switch (bytes) { in pcireg_cfgread()
239 switch (bytes) { in pcireg_cfgwrite()
342 switch (bytes) { in pciereg_cfgread()
[all …]
/freebsd/tools/tools/crypto/
H A DREADME18 0.129 sec, 2048 des crypts, 8 bytes, 127120 byte/sec, 1.0 Mb/sec
19 0.129 sec, 2048 des crypts, 16 bytes, 253915 byte/sec, 1.9 Mb/sec
20 0.129 sec, 2048 des crypts, 32 bytes, 508942 byte/sec, 3.9 Mb/sec
21 0.128 sec, 2048 des crypts, 64 bytes, 1020135 byte/sec, 7.8 Mb/sec
22 0.134 sec, 2048 des crypts, 128 bytes, 1954869 byte/sec, 14.9 Mb/sec
23 0.142 sec, 2048 des crypts, 256 bytes, 3698107 byte/sec, 28.2 Mb/sec
24 0.190 sec, 2048 des crypts, 1024 bytes, 11037700 byte/sec, 84.2 Mb/sec
25 0.264 sec, 2048 des crypts, 2048 bytes, 15891127 byte/sec, 121.2 Mb/sec
26 0.403 sec, 2048 des crypts, 4096 bytes, 20828998 byte/sec, 158.9 Mb/sec
27 0.687 sec, 2048 des crypts, 8192 bytes, 24426602 byte/sec, 186.4 Mb/sec
[all …]
/freebsd/share/examples/sound/
H A Dbasic.c52 int bytes = config.buffer_info.bytes; in main() local
53 int8_t *ibuf = malloc(bytes); in main()
54 int8_t *obuf = malloc(bytes); in main()
55 sample_t *channels = malloc(bytes); in main()
59 bytes, in main()
68 ret = read(config.fd, ibuf, bytes); in main()
69 if (ret < bytes) { in main()
73 bytes, in main()
81 ret = write(config.fd, obuf, bytes); in main()
82 if (ret < bytes) { in main()
[all …]
/freebsd/sys/teken/
H A Dteken_wcwidth.h134 teken_utf8_bytes_to_codepoint(uint8_t bytes[4], int nbytes) in teken_utf8_bytes_to_codepoint()
153 if (__builtin_clz(~(bytes[0] & 0xf0) << 24) != nbytes) in teken_utf8_bytes_to_codepoint()
158 return (bytes[0] & 0x7f); in teken_utf8_bytes_to_codepoint()
160 return (bytes[0] & 0x1f) << 6 | (bytes[1] & 0x3f); in teken_utf8_bytes_to_codepoint()
162 return (bytes[0] & 0xf) << 12 | (bytes[1] & 0x3f) << 6 | in teken_utf8_bytes_to_codepoint()
163 (bytes[2] & 0x3f); in teken_utf8_bytes_to_codepoint()
165 return (bytes[0] & 0x7) << 18 | (bytes[1] & 0x3f) << 12 | in teken_utf8_bytes_to_codepoint()
166 (bytes[2] & 0x3f) << 6 | (bytes[3] & 0x3f); in teken_utf8_bytes_to_codepoint()
/freebsd/contrib/file/magic/Magdir/
H A Dforth25 >>>24 lelong x Text length: %d bytes,
26 >>>28 lelong x Data length: %d bytes,
30 >>>44 lelong x BSS length: %d bytes
35 >>2 leshort x + %d bytes,
47 >4 belong x Text length: %d bytes,
48 >8 belong x Data length: %d bytes,
49 >12 belong x BSS length: %d bytes,
56 >4 lelong x Text length: %d bytes,
57 >8 lelong x Data length: %d bytes,
58 >12 lelong x BSS length: %d bytes,
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DRegisterValue.cpp120 DataExtractor data(buffer.bytes.data(), buffer.bytes.size(), in GetScalarValue()
265 std::vector<uint8_t> bytes; in ParseVectorEncoding() local
272 bytes.push_back(byte); in ParseVectorEncoding()
277 if (bytes.size() != byte_size) in ParseVectorEncoding()
474 buffer.bytes = rhs.buffer.bytes; in CopyValue()
681 return buffer.bytes.data(); in GetBytes()
683 return buffer.bytes.data(); in GetBytes()
729 if (bytes && length > 0) { in SetBytes()
732 memcpy(buffer.bytes.data(), bytes, length); in SetBytes()
736 buffer.bytes.resize(0); in SetBytes()
[all …]
/freebsd/tests/sys/kern/
H A Dtty_pts.c24 int bytes; in ATF_TC_BODY() local
29 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); in ATF_TC_BODY()
30 ATF_REQUIRE_EQ(0, bytes); in ATF_TC_BODY()
33 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); in ATF_TC_BODY()
34 ATF_REQUIRE_EQ(sizeof(buf) - 1, bytes); in ATF_TC_BODY()
38 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); in ATF_TC_BODY()
39 ATF_REQUIRE_EQ(0, bytes); in ATF_TC_BODY()
46 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); in ATF_TC_BODY()
47 ATF_REQUIRE_EQ(sizeof(buf) - 1, bytes); in ATF_TC_BODY()
55 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); in ATF_TC_BODY()
[all …]
/freebsd/contrib/netbsd-tests/ipf/expected/
H A Df2927 FWD: IN pkts 2 bytes 56 OUT pkts 2 bytes 56
28 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
33 FWD: IN pkts 2 bytes 56 OUT pkts 2 bytes 56
34 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
39 FWD: IN pkts 2 bytes 56 OUT pkts 2 bytes 56
40 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
45 FWD: IN pkts 2 bytes 56 OUT pkts 2 bytes 56
46 REV: IN pkts 0 bytes 0 OUT pkts 0 bytes 0
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-section.c167 sfix_write(sfix, bytes); in create()
202 sfix_write(sfix, bytes); in create_truncated()
369 sfix_write(sfix, bytes); in get_overflow()
391 sfix_write(sfix, bytes); in attach_overflow()
413 sfix_write(sfix, bytes); in attach_bad_ucount()
434 sfix_write(sfix, bytes); in map_change()
440 sfix_write(sfix, bytes); in map_change()
453 sfix_write(sfix, bytes); in map_put()
476 sfix_write(sfix, bytes); in unmap_nomap()
493 sfix_write(sfix, bytes); in map_overflow()
[all …]
/freebsd/sys/cddl/dev/kinst/amd64/
H A Dkinst_isa.c283 uint8_t *bytes, modrm, rex; in kinst_instr_dissect() local
295 bytes = d86.d86_bytes; in kinst_instr_dissect()
303 switch (bytes[i]) { in kinst_instr_dissect()
323 rex = bytes[i]; in kinst_instr_dissect()
337 switch (bytes[opcidx]) { in kinst_instr_dissect()
339 switch (bytes[opcidx + 1]) { in kinst_instr_dissect()
408 modrm = bytes[d86.d86_rmindex]; in kinst_instr_dissect()
461 bytes[opcidx] == 0x0f || in kinst_instr_dissect()
462 bytes[opcidx] == 0xe9 || in kinst_instr_dissect()
463 bytes[opcidx] == 0xff) { in kinst_instr_dissect()
[all …]
/freebsd/contrib/sendmail/libsm/
H A Dutf8_valid.c44 const unsigned char *bytes; local
47 bytes = (const unsigned char *)b;
56 byte1 = bytes[index++];
63 if (byte1 < 0xC2 || bytes[index++] > 0xBF)
71 unsigned char byte2 = bytes[index++];
78 || bytes[index++] > 0xBF)
87 int byte2 = bytes[index++];
95 || bytes[index++] > 0xBF
97 || bytes[index++] > 0xBF)
/freebsd/usr.sbin/bhyve/amd64/
H A Dinout.c67 switch (bytes) { in default_inout()
113 bytes = vmexit->u.inout.bytes; in emulate_inout()
118 assert(bytes == 1 || bytes == 2 || bytes == 4); in emulate_inout()
164 bytes, prot, iov, nitems(iov), &fault); in emulate_inout()
181 vm_copyin(iov, &val, bytes); in emulate_inout()
188 vm_copyout(&val, iov, bytes); in emulate_inout()
192 index -= bytes; in emulate_inout()
194 index += bytes; in emulate_inout()
221 val = eax & vie_size2mask(bytes); in emulate_inout()
224 eax &= ~vie_size2mask(bytes); in emulate_inout()
[all …]
/freebsd/crypto/openssh/
H A Dprogressmeter.c89 format_rate(off_t bytes) in format_rate() argument
92 static char buf[STRING_SIZE(bytes) * 2 + 16]; in format_rate()
94 bytes *= 100; in format_rate()
96 bytes = (bytes + 512) / 1024; in format_rate()
99 bytes = (bytes + 512) / 1024; in format_rate()
102 (long long) (bytes + 5) / 100, in format_rate()
103 (long long) (bytes + 5) / 10 % 10, in format_rate()
110 format_size(off_t bytes) in format_size() argument
113 static char buf[STRING_SIZE(bytes) + 16]; in format_size()
116 bytes = (bytes + 512) / 1024; in format_size()
[all …]
/freebsd/sys/i386/pci/
H A Dpci_cfgreg.c87 int reg, int bytes);
96 unsigned bytes);
186 bytes)); in pci_docfgregread()
221 int bytes) in pci_cfgregwrite() argument
234 bytes); in pci_cfgregwrite()
257 && bytes != 3 in pci_cfgenable()
258 && (unsigned)bytes <= 4 in pci_cfgenable()
307 switch (bytes) { in pcireg_cfgread()
332 switch (bytes) { in pcireg_cfgwrite()
662 switch (bytes) { in pciereg_cfgread()
[all …]
/freebsd/contrib/llvm-project/libcxx/src/
H A Dmemory_resource.cpp43 return std::__libcpp_allocate(bytes, align); in do_allocate()
45 if (bytes == 0) in do_allocate()
46 bytes = 1; in do_allocate()
56 …void do_deallocate(void* p, size_t bytes, size_t align) override { std::__libcpp_deallocate(p, byt… in do_deallocate() argument
284 bytes = (bytes > align) ? bytes : align; in __pool_index()
285 bytes -= 1; in __pool_index()
286 bytes >>= __log2_smallest_block_size; in __pool_index()
287 while (bytes != 0) { in __pool_index()
288 bytes >>= 1; in __pool_index()
351 int i = __pool_index(bytes, align); in do_allocate()
[all …]
/freebsd/crypto/openssl/providers/implementations/rands/seeding/
H A Drand_win.c73 size_t bytes = 0; in ossl_pool_acquire_entropy() local
76 bytes = bytes_needed; in ossl_pool_acquire_entropy()
78 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); in ossl_pool_acquire_entropy()
87 size_t bytes = 0; in ossl_pool_acquire_entropy() local
92 bytes = bytes_needed; in ossl_pool_acquire_entropy()
97 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); in ossl_pool_acquire_entropy()
106 size_t bytes = 0; in ossl_pool_acquire_entropy() local
112 bytes = bytes_needed; in ossl_pool_acquire_entropy()
116 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); in ossl_pool_acquire_entropy()
/freebsd/contrib/libxo/tests/gettext/saved/
H A Dgt_01.X.out1 …ymay</owner><target>ouchcay</target><bytes>0</bytes><bytes>1</bytes><bytes>2</bytes><bytes>3</byte…
H A Dgt_01.XP.out12 <bytes>0</bytes>
13 <bytes>1</bytes>
14 <bytes>2</bytes>
15 <bytes>3</bytes>
16 <bytes>4</bytes>
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_cwksp.h240 assert(bytes != ZSTD_CWKSP_ALIGNMENT_BYTES); in ZSTD_cwksp_bytes_to_align_ptr()
241 return bytes; in ZSTD_cwksp_bytes_to_align_ptr()
254 void* const alloc = (BYTE*)ws->allocStart - bytes; in ZSTD_cwksp_reserve_internal_buffer_space()
257 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_internal_buffer_space()
340 bytes += 2 * ZSTD_CWKSP_ASAN_REDZONE_SIZE; in ZSTD_cwksp_reserve_internal()
394 end = (BYTE *)alloc + bytes; in ZSTD_cwksp_reserve_table()
398 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes); in ZSTD_cwksp_reserve_table()
399 assert((bytes & (sizeof(U32)-1)) == 0); in ZSTD_cwksp_reserve_table()
411 __asan_unpoison_memory_region(alloc, bytes); in ZSTD_cwksp_reserve_table()
439 assert(bytes % ZSTD_ALIGNOF(void*) == 0); in ZSTD_cwksp_reserve_object()
[all …]
/freebsd/crypto/openssl/test/
H A Dcipherbytes_test.c30 const unsigned char bytes[] = {0x00}; in test_empty() local
33 if (!TEST_int_eq(SSL_bytes_to_cipher_list(s, bytes, 0, 0, &sk, &scsv), 0) in test_empty()
49 const unsigned char bytes[] = {0xc0, 0x0f, 0x00, 0x2f, 0x01, 0x00}; in test_unsupported() local
52 if (!TEST_true(SSL_bytes_to_cipher_list(s, bytes, sizeof(bytes), in test_unsupported()
74 const unsigned char bytes[] = {0x00, 0x00, 0x35, 0x01, 0x00, 0x80, in test_v2() local
78 if (!TEST_true(SSL_bytes_to_cipher_list(s, bytes, sizeof(bytes), 1, in test_v2()
104 const unsigned char bytes[] = {0x00, 0x2f, 0x00, 0x33, 0x00, 0x9f, 0x00, 0xff, in test_v3() local
108 if (!SSL_bytes_to_cipher_list(s, bytes, sizeof(bytes), 0, &sk, &scsv) in test_v3()

12345678910>>...69