File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
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
53
+ #if defined(__has_builtin )
54
+ #if __has_builtin (__builtin_assume_aligned )
54
55
#define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE , PTR , ALIGNMENT ) \
55
56
static_cast<TYPE*>(__builtin_assume_aligned(static_cast<TYPE*>(PTR), (ALIGNMENT)))
56
57
#else
57
58
#define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE , PTR , ALIGNMENT ) (PTR)
58
59
#endif
60
+ #else
61
+ #define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE , PTR , ALIGNMENT ) (PTR)
62
+ #endif
59
63
60
64
#define KERNEL_FLOAT_MAX_ALIGNMENT (32)
61
65
Original file line number Diff line number Diff line change 16
16
17
17
// ================================================================================
18
18
// this file has been auto-generated, do not modify its contents!
19
- // date: 2023-10-24 14:14:37.228322
20
- // git hash: 28f811af866d73bef37acd541bac6a95df9a94c3
19
+ // date: 2024-04-26 09:45:38.335903
20
+ // git hash: 91f4860ae4ece05ec4d8e198d62d9486efa761db
21
21
// ================================================================================
22
22
23
23
#ifndef KERNEL_FLOAT_MACROS_H
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
75
+ #if defined(__has_builtin)
76
+ #if __has_builtin(__builtin_assume_aligned)
76
77
#define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE, PTR, ALIGNMENT ) \
77
78
static_cast <TYPE*>(__builtin_assume_aligned(static_cast <TYPE*>(PTR), (ALIGNMENT)))
78
79
#else
79
80
#define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE, PTR, ALIGNMENT ) (PTR)
80
81
#endif
82
+ #else
83
+ #define KERNEL_FLOAT_ASSUME_ALIGNED (TYPE, PTR, ALIGNMENT ) (PTR)
84
+ #endif
81
85
82
86
#define KERNEL_FLOAT_MAX_ALIGNMENT (32 )
83
87
You can’t perform that action at this time.
0 commit comments