When shifting the low-parts of signed numbers, a logical shift
should be used to avoid sign-extending a bit which isn't a sign
bit.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Russell King 2006-03-08 17:25:33 +00:00 коммит произвёл Russell King
Родитель 7986824e4e
Коммит 3c8fdae78c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -29,8 +29,8 @@ ENTRY(__aeabi_lmul)
mul xh, yl, xh mul xh, yl, xh
mla xh, xl, yh, xh mla xh, xl, yh, xh
mov ip, xl, asr #16 mov ip, xl, lsr #16
mov yh, yl, asr #16 mov yh, yl, lsr #16
bic xl, xl, ip, lsl #16 bic xl, xl, ip, lsl #16
bic yl, yl, yh, lsl #16 bic yl, yl, yh, lsl #16
mla xh, yh, ip, xh mla xh, yh, ip, xh