mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 23:58: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
|
@ -290,7 +290,6 @@
|
|||
vtbl.8 d17, {d28, d29}, d17 @ S2prev[7] = src[reg1 - 1]
|
||||
|
||||
vorr q10, q2, q3 @ C0 = < B == H || D == F >
|
||||
and \reg1, \counter, #7
|
||||
|
||||
vceq.i16 q2, q14, \qH @ tmp2 = < D == H >
|
||||
|
||||
|
@ -313,10 +312,12 @@
|
|||
vbsl q3, q12, q15 @ E3 = < (C0 || !(H == F)) ? E : F >
|
||||
|
||||
#ifdef DO_BGR_TO_RGB
|
||||
bgr1555_to_rgb565 q0, q1, q12, q14, q15
|
||||
bgr1555_to_rgb565 q2, q3, q12, q14, q15
|
||||
bgr1555_to_rgb565 q0, q1, q12, q14, q15, \reg1
|
||||
bgr1555_to_rgb565 q2, q3, q12, q14, q15, \reg1
|
||||
#endif
|
||||
|
||||
and \reg1, \counter, #7
|
||||
|
||||
vst2.16 {q0-q1}, [\dst1] @ [dst] = E0,E1
|
||||
|
||||
bic \counter, \counter, #7
|
||||
|
@ -389,8 +390,8 @@
|
|||
vbsl q3, q12, q15 @ E3 = < (C0 || !(H == F)) ? E : F >
|
||||
|
||||
#ifdef DO_BGR_TO_RGB
|
||||
bgr1555_to_rgb565 q0, q1, q12, q14, q15
|
||||
bgr1555_to_rgb565 q2, q3, q12, q14, q15
|
||||
bgr1555_to_rgb565 q0, q1, q12, q14, q15, \reg1
|
||||
bgr1555_to_rgb565 q2, q3, q12, q14, q15, \reg1
|
||||
#endif
|
||||
|
||||
vst2.16 {q0-q1}, [\aldst1]! @ [dst] = E0,E1; dst1 += 2*2*8
|
||||
|
@ -448,8 +449,8 @@
|
|||
vbsl q3, q12, q15 @ E3 = < (C0 || !(H == F)) ? E : F >
|
||||
|
||||
#ifdef DO_BGR_TO_RGB
|
||||
bgr1555_to_rgb565 q0, q1, q12, q14, q15
|
||||
bgr1555_to_rgb565 q2, q3, q12, q14, q15
|
||||
bgr1555_to_rgb565 q0, q1, q12, q14, q15, \reg1
|
||||
bgr1555_to_rgb565 q2, q3, q12, q14, q15, \reg1
|
||||
#endif
|
||||
|
||||
vst2.16 {q0-q1}, [\aldst1]! @ [dst] = E0,E1; dst1 += 2*2*8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue