Skip to content

Commit

Permalink
load_unaligned_u32: use an int w/_mm_cvtsi32_si128
Browse files Browse the repository at this point in the history
this matches the type of the function parameter; quiets integer
sanitizer warnings of the form:
implicit conversion from type 'uint32_t' (aka 'unsigned int') of value
3215646151 (32-bit, unsigned) to type 'int' changed the value to
-1079321145 (32-bit, signed)

Bug: b/229626362
Change-Id: Ia9a5dc5e1f57cbf4f8f8fa457bb674ef43369d37
  • Loading branch information
jzern committed Aug 17, 2022
1 parent c1fb6c6 commit d939886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpx_dsp/x86/mem_sse2.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static INLINE int32_t loadu_int32(const void *src) {
}

static INLINE __m128i load_unaligned_u32(const void *a) {
uint32_t val;
int val;
memcpy(&val, a, sizeof(val));
return _mm_cvtsi32_si128(val);
}
Expand Down

0 comments on commit d939886

Please sign in to comment.