зеркало из https://github.com/mozilla/moz-skia.git
Add check for EDSP to the 565 opaque blitter.
Review URL: https://codereview.appspot.com/6464082 git-svn-id: http://skia.googlecode.com/svn/trunk@5212 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
db39996d46
Коммит
a2efab28ca
|
@ -48,9 +48,15 @@ static void S32A_D565_Opaque(uint16_t* SK_RESTRICT dst,
|
||||||
"ubfx r5, r4, #5, #6 \n\t"
|
"ubfx r5, r4, #5, #6 \n\t"
|
||||||
"pld [r0, #16] \n\t"
|
"pld [r0, #16] \n\t"
|
||||||
"lsr r4, r4, #11 \n\t"
|
"lsr r4, r4, #11 \n\t"
|
||||||
|
#ifdef SK_ARM_HAS_EDSP
|
||||||
"smulbb r6, r6, r7 \n\t"
|
"smulbb r6, r6, r7 \n\t"
|
||||||
"smulbb r5, r5, r7 \n\t"
|
"smulbb r5, r5, r7 \n\t"
|
||||||
"smulbb r4, r4, r7 \n\t"
|
"smulbb r4, r4, r7 \n\t"
|
||||||
|
#else
|
||||||
|
"mul r6, r6, r7 \n\t"
|
||||||
|
"mul r5, r5, r7 \n\t"
|
||||||
|
"mul r4, r4, r7 \n\t"
|
||||||
|
#endif
|
||||||
"ubfx r7, r3, #16, #8 \n\t"
|
"ubfx r7, r3, #16, #8 \n\t"
|
||||||
"ubfx ip, r3, #8, #8 \n\t"
|
"ubfx ip, r3, #8, #8 \n\t"
|
||||||
"and r3, r3, #0xff \n\t"
|
"and r3, r3, #0xff \n\t"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче