1 ! Copyright (C) 2012 Imagination Technologies Ltd.
3 ! Signed/unsigned 64-bit division routines.
8 .type _div_u64,function
25 ADDS D0Ar6,D0Ar4,D0Ar4
34 ADDS D0Re0,D0Re0,D0Re0
50 ADDS D0Ar6,D0Ar6,D0Re0
54 SUBS D0Ar2,D0Ar2,D0Ar4
72 .size _div_u64,.-_div_u64
76 .type _div_s64,function
78 MSETL [A0StP],D0FrT,D0.5
81 TSTT D1Ar1,#HI(0x80000000)
88 TSTT D1Ar3,#HI(0x80000000)
96 TSTT D1.5,#HI(0x80000000)
104 GETL D0FrT,D1RtP,[A0StP+#(-16)]
105 GETL D0.5,D1.5,[A0StP+#(-8)]
108 .size _div_s64,.-_div_s64