MCPcopy Create free account
hub / github.com/Snapchat/Valdi / packBits

Function packBits

valdi/src/valdi/runtime/JavaScript/JavaScriptLong.cpp:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace Valdi {
11
12static uint64_t packBits(int32_t lowBits, int32_t highBits) {
13 return static_cast<uint64_t>(
14 ((static_cast<int64_t>(lowBits) & 0xFFFFFFFF) | (static_cast<int64_t>(highBits) << 32)));
15}
16
17JavaScriptLong::JavaScriptLong() = default;
18JavaScriptLong::JavaScriptLong(uint64_t unsignedInt) : _data(unsignedInt), _isUnsigned(true) {}

Callers 1

JavaScriptLongMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected