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:
djsollen@google.com 2012-08-21 15:27:29 +00:00
Родитель db39996d46
Коммит a2efab28ca
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -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"