x86: implement gbpages support in change_page_attr()
[wrt350n-kernel.git] / arch / blackfin / lib / umulsi3_highpart.S
blob67b799351e3e845ba9da8ff0100d9f5e3d2010e3
1 .align 2
2 .global ___umulsi3_highpart;
3 .type ___umulsi3_highpart, STT_FUNC;
5 #ifdef CONFIG_ARITHMETIC_OPS_L1
6 .section .l1.text
7 #else
8 .text
9 #endif
11 ___umulsi3_highpart:
12         R2 = R1.H * R0.H, R3 = R1.L * R0.H (FU);
13         R0 = R1.L * R0.L, R1 = R1.H * R0.L (FU);
14         R0 >>= 16;
15         /* Unsigned multiplication has the nice property that we can
16            ignore carry on this first addition.  */
17         R0 = R0 + R3;
18         R0 = R0 + R1;
19         cc = ac0;
20         R1 = cc;
21         R1 = PACK(R1.l,R0.h);
22         R0 = R1 + R2;
23         RTS;
25 .size ___umulsi3_highpart, .-___umulsi3_highpart