/freebsd-current/contrib/kyua/utils/ |
H A D | units_fwd.hpp | 39 class bytes;
|
H A D | units_test.cpp | 45 ATF_REQUIRE_EQ("2.00T", units::bytes(2 * TB).format()); 46 ATF_REQUIRE_EQ("45.12T", units::bytes(45 * TB + 120 * GB).format()); 56 ATF_REQUIRE_EQ("5.00G", units::bytes(5 * GB).format()); 57 ATF_REQUIRE_EQ("745.96G", units::bytes(745 * GB + 980 * MB).format()); 67 ATF_REQUIRE_EQ("1.00M", units::bytes(1 * MB).format()); 68 ATF_REQUIRE_EQ("1023.50M", units::bytes(1023 * MB + 512 * KB).format()); 77 ATF_REQUIRE_EQ("3.00K", units::bytes(3 * KB).format()); 78 ATF_REQUIRE_EQ("1.33K", units::bytes(1 * KB + 340).format()); 85 ATF_REQUIRE_EQ("0", units::bytes().format()); 86 ATF_REQUIRE_EQ("0", units::bytes( 185 units::bytes bytes; local 186 input >> bytes; local 197 units::bytes bytes; local 198 input >> bytes; local 214 input >> bytes; local [all...] |
H A D | memory.hpp | 40 units::bytes physical_memory(void);
|
H A D | units.hpp | 66 /// Representation of a bytes quantity. 68 /// The purpose of this class is to represent an amount of bytes in a semantic 74 class bytes { class in namespace:utils::units 75 /// Raw representation, in bytes, of the quantity. 79 bytes(void); 80 explicit bytes(const uint64_t); 82 static bytes parse(const std::string&); 89 std::istream& operator>>(std::istream&, bytes&); 90 std::ostream& operator<<(std::ostream&, const bytes&);
|
H A D | units.cpp | 44 /// Constructs a zero bytes quantity. 45 units::bytes::bytes(void) : function in class:units::bytes 51 /// Constructs an arbitrary bytes quantity. 53 /// \param count_ The amount of bytes in the quantity. 54 units::bytes::bytes(const uint64_t count_) : function in class:units::bytes 60 /// Parses a string into a bytes quantity. 64 /// \return The converted bytes quantity. 67 units::bytes [all...] |
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | param.h | 29 /* Pages to bytes and back */ 31 #define btop(bytes) ((bytes) >> PAGE_SHIFT)
|
/freebsd-current/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-current/contrib/llvm-project/llvm/lib/DebugInfo/PDB/ |
H A D | PDBSymbolCustom.cpp | 17 void PDBSymbolCustom::getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes) { argument 18 RawSymbol->getDataBytes(bytes);
|
/freebsd-current/share/examples/sound/ |
H A D | basic.c | 52 int bytes = config.buffer_info.bytes; local 53 int8_t *ibuf = malloc(bytes); 54 int8_t *obuf = malloc(bytes); 55 sample_t *channels = malloc(bytes); 58 "bytes: %d, fragments: %d, fragsize: %d, fragstotal: %d, samples: %d\n", 59 bytes, 68 ret = read(config.fd, ibuf, bytes); 69 if (ret < bytes) { 72 "Requested %d bytes, bu [all...] |
/freebsd-current/stand/libsa/ |
H A D | zalloc_protos.h | 33 Library void *znalloc(struct MemPool *mpool, uintptr_t bytes, size_t align); 34 Library void zfree(struct MemPool *mpool, void *ptr, uintptr_t bytes); 35 Library void zextendPool(MemPool *mp, void *base, uintptr_t bytes);
|
H A D | zalloc.c | 67 * Allocation and frees of 0 bytes are valid operations. 88 znalloc(MemPool *mp, uintptr_t bytes, size_t align) argument 98 bytes = (bytes + MEMNODE_SIZE_MASK) & ~MEMNODE_SIZE_MASK; 100 if (bytes == 0) 108 if (bytes > mp->mp_Size - mp->mp_Used) 121 if (bytes + extra > mn->mr_Bytes) 148 if (mn->mr_Bytes == bytes) { 151 mn = (MemNode *)((char *)mn + bytes); 153 mn->mr_Bytes = ((MemNode *)ptr)->mr_Bytes - bytes; 172 zfree(MemPool *mp, void *ptr, uintptr_t bytes) argument 279 zextendPool(MemPool *mp, void *base, uintptr_t bytes) argument [all...] |
H A D | zalloc_malloc.c | 57 Malloc(size_t bytes, const char *file __unused, int line __unused) argument 59 return (Malloc_align(bytes, 1)); 63 Memalign(size_t alignment, size_t bytes, const char *file __unused, argument 69 return (Malloc_align(bytes, alignment)); 73 Malloc_align(size_t bytes, size_t alignment) argument 78 bytes += MALLOCALIGN + 1; 80 bytes += MALLOCALIGN; 83 while ((res = znalloc(&MallocPool, bytes, alignment)) == NULL) { 84 int incr = (bytes + BLKEXTENDMASK) & ~BLKEXTENDMASK; 99 res->ga_Bytes = bytes; 110 size_t bytes; local 157 uintptr_t bytes = (uintptr_t)n1 * (uintptr_t)n2; local [all...] |
/freebsd-current/tests/sys/kern/ |
H A D | tty_pts.c | 24 int bytes; local 29 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); 30 ATF_REQUIRE_EQ(0, bytes); 33 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); 34 ATF_REQUIRE_EQ(sizeof(buf) - 1, bytes); 36 /* Drain what we have available, should result in 0 bytes again. */ 38 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); 39 ATF_REQUIRE_EQ(0, bytes); 46 ATF_REQUIRE_EQ(0, ioctl(master, FIONREAD, &bytes)); 47 ATF_REQUIRE_EQ(sizeof(buf) - 1, bytes); [all...] |
/freebsd-current/contrib/ldns/compat/ |
H A D | calloc.c | 11 # define bzero(buf, bytes) ((void) memset (buf, 0, bytes))
|
/freebsd-current/contrib/cortex-strings/scripts/ |
H A D | plot-top.py | 12 def plot(records, bytes): 13 records = [x for x in records if x.bytes==bytes] 33 vals = [match.bytes*match.loops/match.elapsed/(1024*1024) for 46 pylab.title('Performance of different variants for %d byte blocks' % bytes) 50 pylab.savefig('top-%06d.png' % bytes, dpi=72) 55 for bytes in libplot.unique(records, 'bytes'): 56 plot(records, bytes)
|
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | Endian.h | 22 uint8_t bytes[sizeof(uint32_t)]; member in union:lldb_private::endian::EndianTest 26 return static_cast<lldb::ByteOrder>(endianTest.bytes[0]); 29 // ByteOrder const InlHostByteOrder = (ByteOrder)endianTest.bytes[0];
|
/freebsd-current/usr.sbin/bhyve/amd64/ |
H A D | post.c | 38 int port __unused, int bytes, uint32_t *eax, void *arg __unused) 42 if (bytes != 1) 37 post_data_handler(struct vmctx *ctx __unused, int in, int port __unused, int bytes, uint32_t *eax, void *arg __unused) argument
|
/freebsd-current/sys/contrib/libsodium/src/libsodium/crypto_onetimeauth/poly1305/donna/ |
H A D | poly1305_donna.c | 16 unsigned long long bytes) 24 if (want > bytes) { 25 want = bytes; 30 bytes -= want; 41 if (bytes >= poly1305_block_size) { 42 unsigned long long want = (bytes & ~(poly1305_block_size - 1)); 46 bytes -= want; 50 if (bytes) { 51 for (i = 0; i < bytes; i++) { 54 st->leftover += bytes; 15 poly1305_update(poly1305_state_internal_t *st, const unsigned char *m, unsigned long long bytes) argument [all...] |
/freebsd-current/contrib/pam_modules/pam_passwdqc/ |
H A D | passwdqc_random.c | 44 unsigned char bytes[2]; local 60 if (read_loop(fd, bytes, sizeof(bytes)) != sizeof(bytes)) { 65 i = (((int)bytes[1] & 0x0f) << 8) | (int)bytes[0]; 78 i = ((int)bytes[1] & 0x70) >> 4; 86 memset(bytes, 0, sizeof(bytes));
|
/freebsd-current/crypto/openssl/providers/implementations/rands/seeding/ |
H A D | rand_win.c | 73 size_t bytes = 0; local 76 bytes = bytes_needed; 78 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); 87 size_t bytes = 0; 92 bytes = bytes_needed; 97 ossl_rand_pool_add_end(pool, bytes, 8 * bytes); 106 size_t bytes = 0; 112 bytes [all...] |
/freebsd-current/crypto/openssh/ |
H A D | xmss_commons.h | 17 void to_byte(unsigned char *output, unsigned long long in, uint32_t bytes);
|
H A D | xmss_commons.c | 19 void to_byte(unsigned char *out, unsigned long long in, uint32_t bytes) argument 22 for (i = bytes-1; i >= 0; i--) {
|
/freebsd-current/contrib/libcbor/examples/ |
H A D | streaming_array.c | 21 void flush(size_t bytes) { argument 22 if (bytes == 0) exit(1); // All items should be successfully encoded 23 if (fwrite(buffer, sizeof(unsigned char), bytes, out) != bytes) exit(1);
|
/freebsd-current/sys/amd64/vmm/ |
H A D | vmm_ioport.h | 33 bool in, int port, int bytes, uint32_t *val);
|
/freebsd-current/contrib/xz/src/common/ |
H A D | tuklib_mbstr.h | 25 extern size_t tuklib_mbstr_width(const char *str, size_t *bytes); 35 /// \param bytes If this is not NULL, *bytes is set to the
|