File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 50
50
#define KERNEL_FLOAT_CALL (F , ...) F(__VA_ARGS__)
51
51
52
52
// TOOD: check if this way is support across all compilers
53
- #if defined(__has_builtin ) && __has_builtin (__builtin_assume_aligned ) && 0
54
- #define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE , PTR , ALIGNMENT ) \
55
- static_cast<TYPE*>(__builtin_assume_aligned(static_cast<TYPE*>(PTR), (ALIGNMENT)))
53
+ #if defined(__has_builtin )
54
+ #if __has_builtin (__builtin_assume_aligned ) && 0
55
+ #define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE , PTR , ALIGNMENT ) \
56
+ static_cast<TYPE*>(__builtin_assume_aligned(static_cast<TYPE*>(PTR), (ALIGNMENT)))
57
+ #endif
56
58
#else
57
59
#define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE , PTR , ALIGNMENT ) (PTR)
58
60
#endif
Original file line number Diff line number Diff line change 72
72
#define KERNEL_FLOAT_CALL (F, ...) F(__VA_ARGS__)
73
73
74
74
// TOOD: check if this way is support across all compilers
75
- #if defined(__has_builtin) && __has_builtin(__builtin_assume_aligned) && 0
76
- #define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE, PTR, ALIGNMENT ) \
77
- static_cast <TYPE*>(__builtin_assume_aligned(static_cast <TYPE*>(PTR), (ALIGNMENT)))
75
+ #if defined(__has_builtin)
76
+ #if __has_builtin(__builtin_assume_aligned) && 0
77
+ #define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE, PTR, ALIGNMENT ) \
78
+ static_cast <TYPE*>(__builtin_assume_aligned(static_cast <TYPE*>(PTR), (ALIGNMENT)))
79
+ #endif
78
80
#else
79
81
#define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE, PTR, ALIGNMENT ) (PTR)
80
82
#endif
You can’t perform that action at this time.
0 commit comments