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
10
#include "
phoenix_alignement_type.h
"
11
13
16
template
<
typename
T>
17
inline
const
T *
phoenix_assume_aligned
(
const
T * tabValue){
18
return
(
const
T *)__builtin_assume_aligned(tabValue,
phoenix_alignement_type<T>
());
19
}
20
22
25
template
<
typename
T>
26
inline
T *
phoenix_assume_aligned
(T * tabValue){
27
return
(T *)__builtin_assume_aligned(tabValue,
phoenix_alignement_type<T>
());
28
}
29
30
31
32
#endif
phoenix_alignement_type.h
phoenix_alignement_type
size_t phoenix_alignement_type()
Get the alignement by respect to the type.
Definition
phoenix_alignement_type_impl.h:16
phoenix_assume_aligned
const T * phoenix_assume_aligned(const T *tabValue)
Call __builtin_assume_aligned with proper argument by respect to the table type.
Definition
phoenix_assume_aligned.h:17
src
phoenix_assume_aligned.h
Generated by
1.13.2