/freebsd/contrib/kyua/utils/ |
H A D | units_test.cpp | 45 ATF_REQUIRE_EQ("2.00T", units::bytes(2 * TB).format()); in ATF_TEST_CASE_BODY() 46 ATF_REQUIRE_EQ("45.12T", units::bytes(45 * TB + 120 * GB).format()); in ATF_TEST_CASE_BODY() 56 ATF_REQUIRE_EQ("5.00G", units::bytes(5 * GB).format()); in ATF_TEST_CASE_BODY() 57 ATF_REQUIRE_EQ("745.96G", units::bytes(745 * GB + 980 * MB).format()); in ATF_TEST_CASE_BODY() 67 ATF_REQUIRE_EQ("1.00M", units::bytes(1 * MB).format()); in ATF_TEST_CASE_BODY() 68 ATF_REQUIRE_EQ("1023.50M", units::bytes(1023 * MB + 512 * KB).format()); in ATF_TEST_CASE_BODY() 77 ATF_REQUIRE_EQ("3.00K", units::bytes(3 * KB).format()); in ATF_TEST_CASE_BODY() 78 ATF_REQUIRE_EQ("1.33K", units::bytes(1 * KB + 340).format()); in ATF_TEST_CASE_BODY() 85 ATF_REQUIRE_EQ("0", units::bytes().format()); in ATF_TEST_CASE_BODY() 86 ATF_REQUIRE_EQ("0", units::bytes(0).format()); in ATF_TEST_CASE_BODY() [all …]
|
H A D | units.cpp | 45 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 D | zalloc.c | 88 znalloc(MemPool *mp, uintptr_t bytes, size_t align) in znalloc() argument 98 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; in znalloc() 100 if (bytes == 0) in znalloc() 108 if (bytes > mp->mp_Size - mp->mp_Used) in znalloc() 121 if (bytes + extra > mn->mr_Bytes) in znalloc() 148 if (mn->mr_Bytes == bytes) { in znalloc() 151 mn = (MemNode *)((char *)mn + bytes); in znalloc() 153 mn->mr_Bytes = ((MemNode *)ptr)->mr_Bytes - bytes; in znalloc() 156 mp->mp_Used += bytes; in znalloc() 172 zfree(MemPool *mp, void *ptr, uintptr_t bytes) in zfree() argument [all …]
|
H A D | zalloc_malloc.c | 57 Malloc(size_t bytes, const char *file __unused, int line __unused) in Malloc() argument 59 return (Malloc_align(bytes, 1)); in Malloc() 63 Memalign(size_t alignment, size_t bytes, const char *file __unused, in Memalign() argument 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() 83 while ((res = znalloc(&MallocPool, bytes, alignment)) == NULL) { in Malloc_align() 84 int incr = (bytes + BLKEXTENDMASK) & ~BLKEXTENDMASK; in Malloc_align() 99 res->ga_Bytes = bytes; in Malloc_align() [all …]
|
/freebsd/contrib/bionic-x86_64-string/ |
H A D | sse4-memcmp-slm.S | 753 jnc L(16bytes) 758 jnc L(16bytes) 763 jnc L(16bytes) 767 jmp L(16bytes) 772 jmp L(16bytes) 776 jmp L(16bytes) 780 jmp L(16bytes) 784 jmp L(16bytes) 788 jmp L(16bytes) 792 jmp L(16bytes) [all …]
|
/freebsd/sys/amd64/pci/ |
H A D | pci_cfgreg.c | 53 int reg, int bytes); 56 unsigned slot, unsigned func, unsigned reg, unsigned bytes); 59 unsigned bytes); 60 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes); 61 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes); 101 pci_docfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument 104 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread() 112 bytes)); in pci_docfgregread() 116 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread() 125 pci_cfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_cfgregread() argument [all …]
|
/freebsd/tools/tools/crypto/ |
H A D | README | 18 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/contrib/file/magic/Magdir/ |
H A D | forth | 25 >>>24 lelong x Text length: %d bytes, 26 >>>28 lelong x Data length: %d bytes, 27 >>>32 lelong x Text Relocation Table length: %d bytes, 28 >>>36 lelong x Data Relocation Table 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, 50 >16 belong x Symbol Table length: %d bytes, [all …]
|
/freebsd/sys/teken/ |
H A D | teken_wcwidth.h | 134 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/llvm-project/lldb/source/Utility/ |
H A D | RegisterValue.cpp | 120 DataExtractor data(buffer.bytes.data(), buffer.bytes.size(), in GetScalarValue() 122 if (scalar.SetValueFromData(data, lldb::eEncodingUint, buffer.bytes.size()) in GetScalarValue() 223 buffer.bytes.resize(reg_info.byte_size); in SetValueFromData() 228 buffer.bytes.data(), // dst buffer in SetValueFromData() 229 buffer.bytes.size(), // dst length in SetValueFromData() 265 std::vector<uint8_t> bytes; in ParseVectorEncoding() local 271 while (!car.getAsInteger(0, byte) && bytes.size() < byte_size) { in ParseVectorEncoding() 272 bytes.push_back(byte); in ParseVectorEncoding() 277 if (bytes.size() != byte_size) in ParseVectorEncoding() 280 reg_value->SetBytes(&(bytes.front()), byte_size, eByteOrderLittle); in ParseVectorEncoding() [all …]
|
/freebsd/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-section.c | 163 uint8_t bytes[] = { 0xcc, 0xcc, 0xcc, 0xcc, 0xcc }; in create() local 167 sfix_write(sfix, bytes); in create() 198 uint8_t bytes[] = { 0xcc, 0xcc, 0xcc, 0xcc, 0xcc }; in create_truncated() local 202 sfix_write(sfix, bytes); in create_truncated() 215 ptu_uint_eq(size, sizeof(bytes) - 1); in create_truncated() 366 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in get_overflow() local 369 sfix_write(sfix, bytes); in get_overflow() 388 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_overflow() local 391 sfix_write(sfix, bytes); in attach_overflow() 410 uint8_t bytes[] = { 0xcc, 0x2, 0x4, 0x6 }; in attach_bad_ucount() local [all …]
|
/freebsd/tests/sys/kern/ |
H A D | tty_pts.c | 24 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 D | f29 | 27 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/sys/cddl/dev/kinst/amd64/ |
H A D | kinst_isa.c | 245 kinst_set_disp32(struct kinst_probe *kp, uint8_t *bytes) in kinst_set_disp32() argument 249 memcpy(&disp32, bytes, sizeof(disp32)); in kinst_set_disp32() 283 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() 329 ("%s: failed to disassemble instruction at %p", __func__, bytes)); in kinst_instr_dissect() 337 switch (bytes[opcidx]) { in kinst_instr_dissect() 339 switch (bytes[opcidx + 1]) { in kinst_instr_dissect() 344 kinst_set_disp32(kp, &bytes[dispoff]); in kinst_instr_dissect() [all …]
|
/freebsd/usr.sbin/bhyve/amd64/ |
H A D | inout.c | 64 int port __unused, int bytes, uint32_t *eax, void *arg __unused) in default_inout() argument 67 switch (bytes) { in default_inout() 103 int addrsize, bytes, flags, in, port, prot, rep; in emulate_inout() local 113 bytes = vmexit->u.inout.bytes; in emulate_inout() 118 assert(bytes == 1 || bytes == 2 || bytes == 4); in emulate_inout() 157 vis->seg_name, &vis->seg_desc, index, bytes, in emulate_inout() 164 bytes, prot, iov, nitems(iov), &fault); in emulate_inout() 173 if (vie_alignment_check(vis->paging.cpl, bytes, in emulate_inout() 181 vm_copyin(iov, &val, bytes); in emulate_inout() 183 retval = handler(ctx, in, port, bytes, &val, arg); in emulate_inout() [all …]
|
/freebsd/contrib/sendmail/libsm/ |
H A D | utf8_valid.c | 44 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/sys/i386/pci/ |
H A D | pci_cfgreg.c | 87 int reg, int bytes); 89 static int pcireg_cfgread(int bus, int slot, int func, int reg, int bytes); 90 static void pcireg_cfgwrite(int bus, int slot, int func, int reg, int data, int bytes); 93 unsigned slot, unsigned func, unsigned reg, unsigned bytes); 96 unsigned bytes); 175 pci_docfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_docfgregread() argument 178 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread() 186 bytes)); in pci_docfgregread() 190 return (pcireg_cfgread(bus, slot, func, reg, bytes)); in pci_docfgregread() 199 pci_cfgregread(int domain, int bus, int slot, int func, int reg, int bytes) in pci_cfgregread() argument [all …]
|
/freebsd/crypto/openssh/ |
H A D | progressmeter.c | 89 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() 95 for (i = 0; bytes >= 100*1000 && unit[i] != 'T'; i++) 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() [all …]
|
/freebsd/contrib/llvm-project/libcxx/src/ |
H A D | memory_resource.cpp | 41 void* do_allocate(size_t bytes, size_t align) override { in do_allocate() argument 43 return std::__libcpp_allocate(bytes, align); in do_allocate() 45 if (bytes == 0) in do_allocate() 46 bytes = 1; in do_allocate() 47 void* result = std::__libcpp_allocate(bytes, align); in do_allocate() 49 std::__libcpp_deallocate(result, bytes, align); in do_allocate() 56 void do_deallocate(void* p, size_t bytes, size_t align) override { std::__libcpp_deallocate(p, bytes, align); } in do_deallocate() argument 157 void* unsynchronized_pool_resource::__adhoc_pool::__do_allocate(memory_resource* upstream, size_t bytes, size_t align) { in __do_allocate() argument 164 size_t aligned_capacity = roundup(bytes, footer_alig in __do_allocate() 177 __do_deallocate(memory_resource * upstream,void * p,size_t bytes,size_t align) __do_deallocate() argument 278 __pool_index(size_t bytes,size_t align) const __pool_index() argument 341 do_allocate(size_t bytes,size_t align) do_allocate() argument 395 do_deallocate(void * p,size_t bytes,size_t align) do_deallocate() argument 430 __try_allocate_from_chunk(size_t bytes,size_t align) __try_allocate_from_chunk() argument 441 __try_allocate_from_chunk(size_t bytes,size_t align) __try_allocate_from_chunk() argument 450 do_allocate(size_t bytes,size_t align) do_allocate() argument [all...] |
/freebsd/crypto/openssl/providers/implementations/rands/seeding/ |
H A D | rand_win.c | 73 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/sys/contrib/zstd/lib/compress/ |
H A D | zstd_cwksp.h | 238 size_t const bytes = (alignBytes - ((size_t)ptr & (alignBytesMask))) & alignBytesMask; in ZSTD_cwksp_bytes_to_align_ptr() local 240 assert(bytes != ZSTD_CWKSP_ALIGNMENT_BYTES); in ZSTD_cwksp_bytes_to_align_ptr() 241 return bytes; in ZSTD_cwksp_bytes_to_align_ptr() 252 ZSTD_cwksp_reserve_internal_buffer_space(ZSTD_cwksp* ws, size_t const bytes) in ZSTD_cwksp_reserve_internal_buffer_space() argument 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() 331 ZSTD_cwksp_reserve_internal(ZSTD_cwksp* ws, size_t bytes, ZSTD_cwksp_alloc_phase_e phase) in ZSTD_cwksp_reserve_internal() argument 334 if (ZSTD_isError(ZSTD_cwksp_internal_advance_phase(ws, phase)) || bytes == 0) { in ZSTD_cwksp_reserve_internal() 340 bytes += 2 * ZSTD_CWKSP_ASAN_REDZONE_SIZE; in ZSTD_cwksp_reserve_internal() 343 alloc = ZSTD_cwksp_reserve_internal_buffer_space(ws, bytes); in ZSTD_cwksp_reserve_internal() [all …]
|
/freebsd/contrib/libxo/tests/gettext/saved/ |
H A D | gt_01.X.out | 1 …ymay</owner><target>ouchcay</target><bytes>0</bytes><bytes>1</bytes><bytes>2</bytes><bytes>3</byte…
|
H A D | gt_01.XP.out | 12 <bytes>0</bytes> 13 <bytes>1</bytes> 14 <bytes>2</bytes> 15 <bytes>3</bytes> 16 <bytes>4</bytes>
|
/freebsd/crypto/openssl/test/ |
H A D | cipherbytes_test.c | 30 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()
|
/freebsd/stand/efi/libefi/ |
H A D | efichar.c | 140 int c, bytes; in utf8_to_ucs2() local 152 bytes = 0; in utf8_to_ucs2() 161 if (bytes != 0) in utf8_to_ucs2() 165 bytes = 3; in utf8_to_ucs2() 168 bytes = 2; in utf8_to_ucs2() 171 bytes = 1; in utf8_to_ucs2() 174 bytes = 0; in utf8_to_ucs2() 178 if (bytes > 0) { in utf8_to_ucs2() 180 bytes--; in utf8_to_ucs2() 181 } else if (bytes == 0) in utf8_to_ucs2() [all …]
|