diff --git a/src/crypto/randomx/intrin_portable.h b/src/crypto/randomx/intrin_portable.h index 1dcd3ad37..df98a5432 100644 --- a/src/crypto/randomx/intrin_portable.h +++ b/src/crypto/randomx/intrin_portable.h @@ -414,7 +414,7 @@ FORCE_INLINE void rx_store_vec_f128(double* mem_addr, rx_vec_f128 val) { } FORCE_INLINE rx_vec_f128 rx_swap_vec_f128(rx_vec_f128 a) { - float64x2_t temp; + float64x2_t temp{}; temp = vcopyq_laneq_f64(temp, 1, a, 1); a = vcopyq_laneq_f64(a, 1, a, 0); return vcopyq_laneq_f64(a, 0, temp, 1); @@ -505,7 +505,7 @@ FORCE_INLINE void rx_store_vec_i128(rx_vec_i128* mem_addr, rx_vec_i128 val) { FORCE_INLINE rx_vec_f128 rx_cvt_packed_int_vec_f128(const void* addr) { double lo = unsigned32ToSigned2sCompl(load32((uint8_t*)addr + 0)); double hi = unsigned32ToSigned2sCompl(load32((uint8_t*)addr + 4)); - rx_vec_f128 x; + rx_vec_f128 x{}; x = vsetq_lane_f64(lo, x, 0); x = vsetq_lane_f64(hi, x, 1); return x;