"cmp %[w], #0\n\t"
"beq 2f\n\t"
"1:\n\t"
- /* load dest */
+ /* load src */
"ldr r5, [%[src]], #4\n\t"
#ifdef inner_branch
/* We can avoid doing the multiplication in two cases: 0x0 or 0xff.
* The 0x0 case also allows us to avoid doing an unecessary data
* write which is more valuable so we only check for that */
- "cmp r5, #0x1000000\n\t"
- "blt 3f\n\t"
+ "cmp r5, #0\n\t"
+ "beq 3f\n\t"
/* = 255 - alpha */
"sub r8, %[alpha_mask], r5, lsr #24\n\t"
"cmp %[w], #0\n\t"
"beq 2f\n\t"
"1:\n\t"
- /* load dest */
+ /* load src */
"ldr r5, [%[src]], #4\n\t"
#ifdef inner_branch
/* We can avoid doing the multiplication in two cases: 0x0 or 0xff.
* The 0x0 case also allows us to avoid doing an unecessary data
* write which is more valuable so we only check for that */
- "cmp r5, #0x1000000\n\t"
- "blt 3f\n\t"
+ "cmp r5, #0\n\t"
+ "beq 3f\n\t"
#endif
"ldr r4, [%[dest]] \n\t"
/* We can avoid doing the multiplication in two cases: 0x0 or 0xff.
* The 0x0 case also allows us to avoid doing an unecessary data
* write which is more valuable so we only check for that */
- /* 0x1000000 is the least value that contains alpha all values
- * less than it have a 0 alpha value */
- "cmp r5, #0x0\n\t"
+ "cmp r5, #0\n\t"
"beq 3f\n\t"
#endif