PhoenixHardware  0.2.0
Tools to get hardware information
Loading...
Searching...
No Matches
phoenix_assume_aligned.h
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7#ifndef __PHOENIX_ASSUME_ALIGNED_H__
8#define __PHOENIX_ASSUME_ALIGNED_H__
9
11
13
16template<typename T>
17inline const T * phoenix_assume_aligned(const T * tabValue){
18 return (const T *)__builtin_assume_aligned(tabValue, phoenix_alignement_type<T>());
19}
20
22
25template<typename T>
26inline T * phoenix_assume_aligned(T * tabValue){
27 return (T *)__builtin_assume_aligned(tabValue, phoenix_alignement_type<T>());
28}
29
30
31
32#endif
size_t phoenix_alignement_type()
Get the alignement by respect to the type.
const T * phoenix_assume_aligned(const T *tabValue)
Call __builtin_assume_aligned with proper argument by respect to the table type.