os-k/obj/kaleid/common/arith.S

115 lines
1.7 KiB
ArmAsm

.file "arith.c"
.text
.p2align 4,,15
.globl _osk_abs
.type _osk_abs, @function
_osk_abs:
.LFB2:
.cfi_startproc
movl %edi, %edx
movl %edi, %eax
sarl $31, %edx
xorl %edx, %eax
subl %edx, %eax
ret
.cfi_endproc
.LFE2:
.size _osk_abs, .-_osk_abs
.p2align 4,,15
.globl _osk_labs
.type _osk_labs, @function
_osk_labs:
.LFB3:
.cfi_startproc
movq %rdi, %rdx
movq %rdi, %rax
sarq $63, %rdx
xorq %rdx, %rax
subq %rdx, %rax
ret
.cfi_endproc
.LFE3:
.size _osk_labs, .-_osk_labs
.p2align 4,,15
.globl _osk_min
.type _osk_min, @function
_osk_min:
.LFB4:
.cfi_startproc
cmpl %edi, %esi
movl %edi, %eax
cmovle %esi, %eax
ret
.cfi_endproc
.LFE4:
.size _osk_min, .-_osk_min
.p2align 4,,15
.globl _osk_lmin
.type _osk_lmin, @function
_osk_lmin:
.LFB5:
.cfi_startproc
cmpq %rdi, %rsi
movq %rdi, %rax
cmovle %rsi, %rax
ret
.cfi_endproc
.LFE5:
.size _osk_lmin, .-_osk_lmin
.p2align 4,,15
.globl _osk_max
.type _osk_max, @function
_osk_max:
.LFB11:
.cfi_startproc
cmpl %esi, %edi
movl %esi, %eax
cmovle %edi, %eax
ret
.cfi_endproc
.LFE11:
.size _osk_max, .-_osk_max
.p2align 4,,15
.globl _osk_lmax
.type _osk_lmax, @function
_osk_lmax:
.LFB13:
.cfi_startproc
cmpq %rsi, %rdi
movq %rsi, %rax
cmovle %rdi, %rax
ret
.cfi_endproc
.LFE13:
.size _osk_lmax, .-_osk_lmax
.p2align 4,,15
.globl _osk_div
.type _osk_div, @function
_osk_div:
.LFB8:
.cfi_startproc
movl %edi, %eax
cltd
idivl %esi
salq $32, %rdx
movl %eax, %eax
orq %rdx, %rax
ret
.cfi_endproc
.LFE8:
.size _osk_div, .-_osk_div
.p2align 4,,15
.globl _osk_ldiv
.type _osk_ldiv, @function
_osk_ldiv:
.LFB9:
.cfi_startproc
movq %rdi, %rax
cqto
idivq %rsi
ret
.cfi_endproc
.LFE9:
.size _osk_ldiv, .-_osk_ldiv
.ident "GCC: (GNU) 7.3.0"