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

Function unpackIntPair

valdi/src/valdi/runtime/Views/Measure.cpp:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39std::pair<int32_t, int32_t> unpackIntPair(int64_t compressed) {
40 return std::make_pair(static_cast<int32_t>(compressed >> 32 & 0xFFFFFFFF),
41 static_cast<int32_t>(compressed & 0xFFFFFFFF));
42}
43
44int64_t packIntPair(int32_t horizontal, int32_t vertical) {
45 int64_t out;

Callers 2

TESTFunction · 0.85
fromPackedPixelsMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68