Skip to content

Commit 8747df5

Browse files
committed
use auto for z2v
1 parent 5a68272 commit 8747df5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spreadinterp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,8 @@ Two upsampfacs implemented. Params must match ref formula. Barnett 4/24/18 */
796796
static constexpr uint8_t if_odd_degree = ((nc + 1) % 2);
797797
static constexpr uint8_t offset_start = tail ? w - tail : w - simd_size;
798798
static constexpr uint8_t end_idx = (w + (tail > 0)) / 2;
799-
const simd_type zv(z);
800-
const simd_type z2v = zv * zv;
799+
const simd_type zv{z};
800+
const auto z2v = zv * zv;
801801

802802
// some xsimd constant for shuffle or inverse
803803
static constexpr auto shuffle_batch = []() constexpr noexcept {

0 commit comments

Comments
 (0)