mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-06 23:28:04 -04:00
neon filters: minor optimization from M-HT
This commit is contained in:
parent
e22d791cf8
commit
c688b90fe2
3 changed files with 17 additions and 18 deletions
|
@ -30,17 +30,15 @@
|
|||
#define A256 :256
|
||||
#endif
|
||||
|
||||
.macro bgr1555_to_rgb565 dr0 dr1 t0 t1 t2
|
||||
str r0, [sp, #-4]
|
||||
mov r0, #0x07c0
|
||||
.macro bgr1555_to_rgb565 dr0 dr1 t0 t1 t2 ar
|
||||
mov \ar, #0x07c0
|
||||
vshl.u16 \t0, \dr0, #11
|
||||
vshl.u16 \t1, \dr1, #11
|
||||
vshl.u16 \dr0, \dr0, #1
|
||||
vshl.u16 \dr1, \dr1, #1
|
||||
vdup.16 \t2, r0
|
||||
vdup.16 \t2, \ar
|
||||
vsri.u16 \t0, \dr0, #11
|
||||
vsri.u16 \t1, \dr1, #11
|
||||
ldr r0, [sp, #-4]
|
||||
vbif \dr0, \t0, \t2
|
||||
vbif \dr1, \t1, \t2
|
||||
.endm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue