This is an “unaligned”
LVecBase4. It has no functionality other than to store numbers, and it will pack them in as tightly as possible, avoiding any SSE2 alignment requirements shared by the primary
Use it only when you need to pack numbers tightly without respect to alignment, and then copy it to a proper
LVecBase4to get actual use from it.
UnalignedLVecBase4i(void) = default¶
UnalignedLVecBase4i(int x, int y, int z, int w)¶
void fill(int fill_value)¶
Sets each element of the vector to the indicated fill_value. This is particularly useful for initializing to zero.
int const *get_data(void) const¶
Returns the address of the first of the three data elements in the vector. The remaining elements occupy the next positions consecutively in memory.
static constexpr int get_num_components(void)¶
void set(int x, int y, int z, int w)¶
static constexpr int size(void)¶
- UnalignedLVecBase4i(void) = default¶