Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deathkiller/jazz2-native
/ DEATH_UNLIKELY
Function
DEATH_UNLIKELY
Sources/Shared/IO/PakFile.cpp:139–141 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
137
auto readU16 = [&]() -> std::uint16_t {
138
std::uint16_t value = s->ReadValueAsLE<std::uint16_t>();
139
if DEATH_UNLIKELY(isBigEndian) {
140
value = Memory::SwapBytes(value);
141
}
142
return value;
143
};
144
Callers
15
Read
Method · 0.70
PakFile
Method · 0.70
DEATH_ASSERT
Function · 0.70
OpenFile
Method · 0.70
FindItem
Method · 0.70
FindItemByHash
Method · 0.70
Increment
Method · 0.70
Finalize
Method · 0.70
Read
Method · 0.70
FileStream.cpp
File · 0.70
Write
Method · 0.70
GetSize
Method · 0.70
Calls
1
SwapBytes
Function · 0.85
Tested by
2
Read
Method · 0.40
Write
Method · 0.40