Can I use movne here instead?

This commit is contained in:
Gwilym Inzani 2023-06-16 23:41:15 +01:00
parent ceb57eb002
commit e72de28961

View file

@ -190,7 +190,7 @@ SWAP_SIGN .req r11
@ So (-1 logical >> 24) gives 11111111 and (1 logical >> 24) gives 00000000 so register is clamped between these two values.
.macro clamp_s8 reg:req
subs TEMP, CONST_0, \reg, asr #8
andne \reg, CONST_FF, TEMP, lsr #24
movne \reg, TEMP, lsr #24
.endm
.macro load_sample left_reg:req right_reg:req