1 ! SPDX-License-Identifier: GPL-2.0
2 ! Copyright (C) 2012 Imagination Technologies Ltd.
4 ! Signed/unsigned 64-bit division routines.
9 .type _div_u64,function
26 ADDS D0Ar6,D0Ar4,D0Ar4
35 ADDS D0Re0,D0Re0,D0Re0
51 ADDS D0Ar6,D0Ar6,D0Re0
55 SUBS D0Ar2,D0Ar2,D0Ar4
73 .size _div_u64,.-_div_u64
77 .type _div_s64,function
79 MSETL [A0StP],D0FrT,D0.5
82 TSTT D1Ar1,#HI(0x80000000)
89 TSTT D1Ar3,#HI(0x80000000)
97 TSTT D1.5,#HI(0x80000000)
105 GETL D0FrT,D1RtP,[A0StP+#(-16)]
106 GETL D0.5,D1.5,[A0StP+#(-8)]
109 .size _div_s64,.-_div_s64