PhoenixHardware  0.2.0
Tools to get hardware information
Loading...
Searching...
No Matches
phoenix_assume_aligned.h File Reference
+ Include dependency graph for phoenix_assume_aligned.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename T>
const T * phoenix_assume_aligned (const T *tabValue)
 Call __builtin_assume_aligned with proper argument by respect to the table type.
 
template<typename T>
T * phoenix_assume_aligned (T *tabValue)
 Call __builtin_assume_aligned with proper argument by respect to the table type.
 

Function Documentation

◆ phoenix_assume_aligned() [1/2]

template<typename T>
const T * phoenix_assume_aligned ( const T * tabValue)
inline

Call __builtin_assume_aligned with proper argument by respect to the table type.

Parameters
tabValue: table of value
Returns
pointer assumed to be aligned

Definition at line 17 of file phoenix_assume_aligned.h.

17 {
18 return (const T *)__builtin_assume_aligned(tabValue, phoenix_alignement_type<T>());
19}
size_t phoenix_alignement_type()
Get the alignement by respect to the type.

References phoenix_alignement_type().

Referenced by phoenix_transpose_block(), phoenix_transpose_block_copy(), and phoenix_transpose_copy().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ phoenix_assume_aligned() [2/2]

template<typename T>
T * phoenix_assume_aligned ( T * tabValue)
inline

Call __builtin_assume_aligned with proper argument by respect to the table type.

Parameters
tabValue: table of value
Returns
pointer assumed to be aligned

Definition at line 26 of file phoenix_assume_aligned.h.

26 {
27 return (T *)__builtin_assume_aligned(tabValue, phoenix_alignement_type<T>());
28}

References phoenix_alignement_type().

+ Here is the call graph for this function: