Skip to content

Commit

Permalink
use auto for z2v
Browse files Browse the repository at this point in the history
  • Loading branch information
lu1and10 committed Jul 17, 2024
1 parent 5a68272 commit 8747df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spreadinterp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,8 +796,8 @@ Two upsampfacs implemented. Params must match ref formula. Barnett 4/24/18 */
static constexpr uint8_t if_odd_degree = ((nc + 1) % 2);
static constexpr uint8_t offset_start = tail ? w - tail : w - simd_size;
static constexpr uint8_t end_idx = (w + (tail > 0)) / 2;
const simd_type zv(z);
const simd_type z2v = zv * zv;
const simd_type zv{z};
const auto z2v = zv * zv;

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

0 comments on commit 8747df5

Please sign in to comment.