Backlog/lib/zphysics/libs/Jolt/Math/UVec4.cpp

20 lines
601 B
C++

// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics)
// SPDX-FileCopyrightText: 2021 Jorrit Rouwe
// SPDX-License-Identifier: MIT
#include <Jolt/Jolt.h>
JPH_NAMESPACE_BEGIN
// Table that shifts vector components by 4 - X floats to the left
const UVec4 UVec4::sFourMinusXShuffle[5] =
{
UVec4(0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff),
UVec4(0x0f0e0d0c, 0xffffffff, 0xffffffff, 0xffffffff),
UVec4(0x0b0a0908, 0x0f0e0d0c, 0xffffffff, 0xffffffff),
UVec4(0x07060504, 0x0b0a0908, 0x0f0e0d0c, 0xffffffff),
UVec4(0x03020100, 0x07060504, 0x0b0a0908, 0x0f0e0d0c)
};
JPH_NAMESPACE_END