Skip to content

Commit ea677b9

Browse files
committed
Use vreinterpretq rather than direct casts, for Visual Studio
1 parent 46fe1d9 commit ea677b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ipcrypt2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ typedef uint64x2_t BlockVec;
145145
/**
146146
* Shift left a 128-bit register by b bytes (zero-filling from the right).
147147
*/
148-
# define BYTESHL128(a, b) vreinterpretq_u64_u8(vextq_s8(vdupq_n_s8(0), (uint8x16_t) a, 16 - (b)))
148+
# define BYTESHL128(a, b) vreinterpretq_u64_u8(vextq_s8(vdupq_n_s8(0), vreinterpretq_s8_u64(a), 16 - (b)))
149149
/**
150150
* Broadcast 32-bit lane 3 across the 128-bit register.
151151
*/

0 commit comments

Comments
 (0)