/gem5/src/mem/cache/compressors/ |
H A D | cpack.hh | 84 const std::array<uint8_t, 4>& bytes, 88 // location is used, the patterns that use the dictionary bytes 91 if (Head::isPattern(bytes, dict_bytes, match_location)) { 93 new Head(bytes, match_location)); 96 return Factory<Tail...>::getPattern(bytes, dict_bytes, 109 const std::array<uint8_t, 4>& bytes, 113 return std::unique_ptr<Pattern>(new Head(bytes, match_location)); 251 * Number of unmatched bytes; 279 * @param num_unmatched_bytes Number of unmatched bytes. 359 * @param dict_bytes The bytes i 83 getPattern( const std::array<uint8_t, 4>& bytes, const std::array<uint8_t, 4>& dict_bytes, const int match_location) argument 108 getPattern( const std::array<uint8_t, 4>& bytes, const std::array<uint8_t, 4>& dict_bytes, const int match_location) argument 370 PatternZZZZ(const std::array<uint8_t, 4> bytes, const int match_location) argument 373 isPattern(const std::array<uint8_t, 4>& bytes, const std::array<uint8_t, 4>& dict_bytes, const int match_location) argument 395 const std::array<uint8_t, 4> bytes; member in class:CPack::PatternXXXX 398 PatternXXXX(const std::array<uint8_t, 4> bytes, const int match_location) argument 401 isPattern(const std::array<uint8_t, 4>& bytes, const std::array<uint8_t, 4>& dict_bytes, const int match_location) argument 421 PatternMMMM(const std::array<uint8_t, 4> bytes, const int match_location) argument 424 isPattern(const std::array<uint8_t, 4>& bytes, const std::array<uint8_t, 4>& dict_bytes, const int match_location) argument 449 PatternMMXX(const std::array<uint8_t, 4> bytes, const int match_location) argument 453 isPattern(const std::array<uint8_t, 4>& bytes, const std::array<uint8_t, 4>& dict_bytes, const int match_location) argument 481 PatternZZZX(const std::array<uint8_t, 4> bytes, const int match_location) argument 484 isPattern(const std::array<uint8_t, 4>& bytes, const std::array<uint8_t, 4>& dict_bytes, const int match_location) argument 509 PatternMMMX(const std::array<uint8_t, 4> bytes, const int match_location) argument 513 isPattern(const std::array<uint8_t, 4>& bytes, const std::array<uint8_t, 4>& dict_bytes, const int match_location) argument [all...] |
H A D | cpack.cc | 74 // Split data in bytes 75 const std::array<uint8_t, 4> bytes = { local 85 PatternFactory::getPattern(bytes, {0, 0, 0, 0}, -1); 91 PatternFactory::getPattern(bytes, dictionary[i], i); 104 dictionary[numEntries++] = bytes;
|
/gem5/src/base/ |
H A D | inet.cc | 101 int bytes[ETH_ADDR_LEN == 6 ? ETH_ADDR_LEN : -1]; local 102 if (sscanf(addr.c_str(), "%x:%x:%x:%x:%x:%x", &bytes[0], &bytes[1], 103 &bytes[2], &bytes[3], &bytes[4], &bytes[5]) != ETH_ADDR_LEN) { 109 if (bytes[i] & ~0xff) { 114 data[i] = bytes[i]; 129 return !memcmp(left.bytes(), righ [all...] |
H A D | inet.hh | 92 const uint8_t *bytes() const { return &data[0]; } function in struct:Net::EthAddr 93 uint8_t *bytes() { return &data[0]; } function in struct:Net::EthAddr 134 // L3 type is now 16 bytes into the hdr with 802.1Q 155 const uint8_t *bytes() const { return (const uint8_t *)this; } function in struct:Net::EthHdr 156 const uint8_t *payload() const { return bytes() + size(); } 157 uint8_t *bytes() { return (uint8_t *)this; } function in struct:Net::EthHdr 158 uint8_t *payload() { return bytes() + size(); } 275 const uint8_t *bytes() const { return (const uint8_t *)this; } function in struct:Net::IpHdr 276 const uint8_t *payload() const { return bytes() + size(); } 277 uint8_t *bytes() { retur function in struct:Net::IpHdr 386 const uint8_t *bytes() const { return (const uint8_t *)this; } function in struct:Net::Ip6Hdr 389 uint8_t *bytes() { return (uint8_t *)this; } function in struct:Net::Ip6Hdr 529 const uint8_t *bytes() const { return (const uint8_t *)this; } function in struct:Net::TcpHdr 531 uint8_t *bytes() { return (uint8_t *)this; } function in struct:Net::TcpHdr 605 const uint8_t *bytes() const { return (const uint8_t *)this; } function in struct:Net::TcpOpt 607 uint8_t *bytes() { return (uint8_t *)this; } function in struct:Net::TcpOpt 625 const uint8_t *bytes() const { return (const uint8_t *)this; } function in struct:Net::UdpHdr 627 uint8_t *bytes() { return (uint8_t *)this; } function in struct:Net::UdpHdr [all...] |
/gem5/src/proto/ |
H A D | protoio.cc | 107 unsigned char bytes[2]; local 108 fileStream.read((char*) bytes, 2); 109 useGzip = fileStream.good() && bytes[0] == 0x1f && bytes[1] == 0x8b;
|
/gem5/src/mem/ |
H A D | se_translating_port_proxy.cc | 73 auto *bytes = static_cast<uint8_t *>(p); local 81 PortProxy::readBlobPhys(paddr, 0, bytes + prevSize, gen.size()); 93 auto *bytes = static_cast<const uint8_t *>(p); local 113 PortProxy::writeBlobPhys(paddr, 0, bytes + prevSize, gen.size());
|
/gem5/src/python/m5/util/ |
H A D | convert.py | 200 bytes = value.split('.') 201 if len(bytes) != 4: 204 for byte in bytes: 208 return (int(bytes[0]) << 24) | (int(bytes[1]) << 16) | \ 209 (int(bytes[2]) << 8) | (int(bytes[3]) << 0)
|
/gem5/ext/pybind11/tests/ |
H A D | test_constants_and_functions.cpp | 31 py::bytes return_bytes() { 36 std::string print_bytes(py::bytes bytes) { argument 37 std::string ret = "bytes["; 38 const auto value = static_cast<std::string>(bytes);
|
H A D | test_pytypes.cpp | 69 m.def("str_from_bytes", []() { return py::str(py::bytes("boo", 3)); }); 80 m.def("bytes_from_string", []() { return py::bytes(std::string("foo")); }); 81 m.def("bytes_from_str", []() { return py::bytes(py::str("bar", 3)); });
|
H A D | test_builtin_casters.py | 48 assert m.ord_char(u'é') == 0xE9 # requires 2 bytes in utf-8, but can be stuffed in a char 50 assert m.ord_char(u'Ā') == 0x100 # requires 2 bytes, doesn't fit in a char 97 """Tests the ability to pass bytes to C++ string-accepting functions. Note that this is 98 one-way: the only way to return bytes to Python is via the pybind11::bytes class.""" 101 byte = bytes if sys.version_info[0] < 3 else str
|
H A D | test_copy_move.cpp | 185 void *operator new(size_t bytes);
|
/gem5/ext/systemc/src/sysc/qt/ |
H A D | qt.h | 41 #define QUICKTHREADS_STKROUNDUP(bytes) \ 42 (((bytes)+QUICKTHREADS_STKALIGN) & ~(QUICKTHREADS_STKALIGN-1))
|
/gem5/util/stats/ |
H A D | stats.py | 284 bytes = etherdev.rxBytes + etherdev.txBytes 285 kbytes = bytes / 1024 300 if command == 'bytes': 301 output.stat = bytes 323 output.stat = bytes / system.run0.numCycles * 8 343 output.stat = bytes / packets 381 output.stat = misses / (bytes / 1024)
|
/gem5/util/m5/ |
H A D | m5.c | 155 int bytes = 0; local 160 bytes += m5_write_file(buf, len, offset, host_filename); 163 fprintf(stderr, "written %d bytes\n", bytes);
|
/gem5/src/python/m5/ext/pyfdt/ |
H A D | pyfdt.py | 120 #Needed for python 3 support: If a bytes object is passed, 326 """Property with signed bytes as value""" 329 """Init with bytes""" 337 self.bytes = bytez 348 for byte in self.bytes]) + "];" 357 blob = pack('>III', FDT_PROP, len(self.bytes), strpos) 358 blob += pack('').join([pack('>b', byte) for byte in self.bytes]) 366 result = '%s: ["bytes", "' % json.dumps(self.name) 368 for byte in self.bytes]) 374 return ''.join([pack('>b', byte) for byte in self.bytes]) [all...] |
/gem5/util/tlm/src/ |
H A D | sc_slave_port.cc | 149 unsigned int bytes = transactor->socket->transport_dbg(*trans); local 150 if (bytes != trans->get_data_length()) {
|
/gem5/src/sim/ |
H A D | pseudo_inst.cc | 517 int bytes = ::read(fd, p, len); local 518 if (bytes <= 0) 521 p += bytes; 522 result += bytes; 523 len -= bytes;
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | pytypes.h | 886 class bytes; 905 explicit str(const bytes &b); 955 class bytes : public object { class in inherits:object 957 PYBIND11_OBJECT(bytes, object, PYBIND11_BYTES_CHECK) 960 bytes(const char *c = "") function in class:bytes 962 if (!m_ptr) pybind11_fail("Could not allocate bytes object!"); 965 bytes(const char *c, size_t n) function in class:bytes 967 if (!m_ptr) pybind11_fail("Could not allocate bytes object!"); 971 bytes(const std::string &s) : bytes( function in class:bytes 984 inline bytes::bytes(const pybind11::str &s) { function in class:bytes [all...] |
H A D | cast.h | 374 space += size_in_ptrs(n_types); // status bytes (holder_constructed and instance_registered) 1241 // When loading into a std::string or char*, accept a bytes object as-is (i.e. 1247 // We were passed a Python 3 raw bytes; accept it into a std::string or char* 1249 const char *bytes = PYBIND11_BYTES_AS_STRING(src.ptr()); 1250 if (bytes) { 1251 value = StringType(bytes, (size_t) PYBIND11_BYTES_SIZE(src.ptr())); 1319 // out how long the first encoded character is in bytes to distinguish between these two 1558 template <> struct handle_type_name<bytes> { static constexpr auto name = _(PYBIND11_BYTES_NAME); };
|
/gem5/src/gpu-compute/ |
H A D | brig_object.cc | 298 brigOp)->bytes); 304 brigOp)->bytes + 4);
|
/gem5/src/systemc/tlm_bridge/ |
H A D | gem5_to_tlm.cc | 421 unsigned int bytes = socket->transport_dbg(*trans); local 422 if (bytes != trans->get_data_length()) {
|
/gem5/src/python/m5/ |
H A D | params.py | 936 bytes = [ int(x, 16) for x in addr.split(':') ] 937 bytes[5] += val 939 val,rem = divmod(bytes[i], 256) 940 bytes[i] = rem 943 bytes[i - 1] += val 944 assert(bytes[0] <= 255) 945 return ':'.join(map(lambda x: '%02x' % x, bytes)) 972 bytes = value.split(':') 973 if len(bytes) != 6: 976 for byte in bytes [all...] |
/gem5/src/arch/hsail/ |
H A D | operand.cc | 244 obj->getOperand(((int *)data_p->bytes)[offset/4]);
|
H A D | Brig_new.hpp | 230 //.bytes={ /(\d+)/ ? $1 : undef } 233 //.rbytes=$bytes{ $bytes } 237 //.print=$bytes{ $bytes>1 ? "_align($bytes)" : "" } 1189 uint8_t bytes[1]; member in struct:BrigData 1492 BrigDataOffsetString32_t bytes; member in struct:BrigOperandConstantBytes
|
H A D | operand.hh | 403 bits = *((T*)(obj->getData(cbptr->bytes + 4)));
|