Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::vector128_float_t Struct Reference

Structure to create a 128 vector with 32 bit floating point constants. More...

Public Member Functions

 operator vector128_t () const noexcept
 Accessor to load the 128 bit vector value.
 

Public Attributes

union { 
 
   float   f [4] 
 Value as 4 32 bit floats. More...
 
   vector128_t   v 
 Value as a 128 bit vector. More...
 
};  
 

Detailed Description

Structure to create a 128 vector with 32 bit floating point constants.


There is no standard for initializing 128 bit vectors at compile time. This structure fixes the problem by creating a union between the 128 bit value and an array of data that maps directly over it.

// Initialize with 4 32 bit floats
const Burger::vector128_float_t One_Vector = {{1.0f,1.0f,1.0f,1.0f}};
Structure to create a 128 vector with 32 bit floating point constants.
Definition burger.h:1665
See also
vector128_uint32_t, vector128_uint16_t, vector128_uint8_t, or vector128_int32_t

Member Function Documentation

◆ operator vector128_t()

Burger::vector128_float_t::operator vector128_t ( ) const
inlinenoexcept

Accessor to load the 128 bit vector value.


See also
vector128_float_t or vector128_t

Member Data Documentation

◆ [union]

◆ f

float Burger::vector128_float_t::f[4]

Value as 4 32 bit floats.

◆ v

vector128_t Burger::vector128_float_t::v

Value as a 128 bit vector.