Skip to content

Commit a614a47

Browse files
Don't force inline anything
1 parent 6e2c039 commit a614a47

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

GPU/Common/MemLayout.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,20 +292,20 @@ struct interface<S, F, Flag::soa> { using type = wrapper<S, F>; };
292292

293293
#define MEMLAYOUT_APPLY_UNARY(...)\
294294
template <class Function>\
295-
__attribute__((flatten)) constexpr auto apply(Function&& f) { return f(__VA_ARGS__); }\
295+
constexpr auto apply(Function&& f) { return f(__VA_ARGS__); }\
296296
template <class Function>\
297-
__attribute__((flatten)) constexpr auto apply(Function&& f) const { return f(__VA_ARGS__); }\
297+
constexpr auto apply(Function&& f) const { return f(__VA_ARGS__); }\
298298

299299
#define MEMLAYOUT_EXPAND(m) f(m, other.m)
300300

301301
#define MEMLAYOUT_APPLY_BINARY(STRUCT_NAME, ...)\
302302
template <template <class> class F_other, class Function>\
303-
__attribute__((flatten)) constexpr STRUCT_NAME apply(STRUCT_NAME<F_other>& other, Function&& f) { return {__VA_ARGS__}; }\
303+
constexpr STRUCT_NAME apply(STRUCT_NAME<F_other>& other, Function&& f) { return {__VA_ARGS__}; }\
304304
template <template <class> class F_other, class Function>\
305-
__attribute__((flatten)) constexpr STRUCT_NAME apply(STRUCT_NAME<F_other>& other, Function&& f) const { return {__VA_ARGS__}; }\
305+
constexpr STRUCT_NAME apply(STRUCT_NAME<F_other>& other, Function&& f) const { return {__VA_ARGS__}; }\
306306
template <template <class> class F_other, class Function>\
307-
__attribute__((flatten)) constexpr STRUCT_NAME apply(const STRUCT_NAME<F_other>& other, Function&& f) { return {__VA_ARGS__}; }\
307+
constexpr STRUCT_NAME apply(const STRUCT_NAME<F_other>& other, Function&& f) { return {__VA_ARGS__}; }\
308308
template <template <class> class F_other, class Function>\
309-
__attribute__((flatten)) constexpr STRUCT_NAME apply(const STRUCT_NAME<F_other>& other, Function&& f) const { return {__VA_ARGS__}; }\
309+
constexpr STRUCT_NAME apply(const STRUCT_NAME<F_other>& other, Function&& f) const { return {__VA_ARGS__}; }\
310310

311311
#endif // MEMLAYOUT_H

0 commit comments

Comments
 (0)