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

Function packIntPair

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

Source from the content-addressed store, hash-verified

42}
43
44int64_t packIntPair(int32_t horizontal, int32_t vertical) {
45 int64_t out;
46 *(reinterpret_cast<int32_t*>(&out)) = vertical;
47 *(reinterpret_cast<int32_t*>(&out) + 1) = horizontal;
48 return out;
49}
50
51int64_t pointsToPackedPixels(float horizontal, float vertical, float pointScale) {
52 auto horizontalP = pointsToPixels(horizontal, pointScale);

Callers 2

TESTFunction · 0.85
pointsToPackedPixelsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68