소스 검색
Both src and dst should be alignment checked separately
The following pattern passes the current check:
src - 1010
dst - 0101
mask - 1111
master
Arun Prakash Jana
7 년 전
No known key found for this signature in database
GPG 키 ID: A75979F35C080412
1개의 변경된 파일과
1개의 추가작업 그리고
1개의 파일을 삭제
-
nnn.c
|
|
@@ -488,7 +488,7 @@ xstrlcpy(char *dest, const char *src, size_t n) |
|
|
|
* To enable -O3 ensure src and dest are 16-byte aligned |
|
|
|
* More info: http://www.felixcloutier.com/x86/MOVDQA.html |
|
|
|
*/ |
|
|
|
if ((n >= lsize) && !((ulong)src & (ulong)dest & _ALIGNMENT_MASK)) { |
|
|
|
if ((n >= lsize) && (((ulong)src & _ALIGNMENT_MASK) == 0 && ((ulong)dest & _ALIGNMENT_MASK) == 0)) { |
|
|
|
s = (ulong *)src; |
|
|
|
d = (ulong *)dest; |
|
|
|
blocks = n >> _WSHIFT; |
|
|
|