Skip to content

Commit 9d9b64c

Browse files
committed
remove conditional declaration
1 parent 2f1f13f commit 9d9b64c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if (CMAKE_CXX_COMPILER_ID IN_LIST GNU_LIKE_FRONTENDS)
1717
-fno-trapping-math
1818
-fassociative-math
1919
-freciprocal-math
20+
-fmerge-all-constants
2021
-ftree-vectorize
2122
)
2223
# if -fimplicit-constexpr is supported, add it to the list of flags

src/spreadinterp.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -811,9 +811,7 @@ Two upsampfacs implemented. Params must match ref formula. Barnett 4/24/18 */
811811
}();
812812

813813
// process simd vecs
814-
struct EmptySimd {};
815-
// these exist only if tail > 0
816-
typename std::conditional<(tail > 0), simd_type, EmptySimd>::type k_prev, k_sym;
814+
simd_type k_prev, k_sym;
817815
if constexpr (tail) k_sym = {0};
818816
for (uint8_t i{0}, offset = offset_start; i < end_idx;
819817
i += simd_size, offset -= simd_size) {

0 commit comments

Comments
 (0)