#NO_APP .file "fixmath.c" .text .align 2 .globl fix2int .type fix2int, @function fix2int: move.l 4(%sp),%d0 jlt .L5 bfextu %d0{#0:#16},%d1 move.l %d1,%d0 rts .L5: add.l #65535,%d0 bfextu %d0{#0:#16},%d1 move.l %d1,%d0 rts .size fix2int, .-fix2int .align 2 .globl int2fix .type int2fix, @function int2fix: move.w 6(%sp),%d0 ext.l %d0 swap %d0 clr.w %d0 rts .size int2fix, .-int2fix .align 2 .globl fix_mul .type fix_mul, @function fix_mul: move.l 4(%sp),%d0 muls.l 8(%sp),%d0 swap %d0 ext.l %d0 rts .size fix_mul, .-fix_mul .align 2 .globl fix_div .type fix_div, @function fix_div: move.l 4(%sp),%d0 swap %d0 clr.w %d0 divs.l 8(%sp),%d0 rts .size fix_div, .-fix_div .align 2 .globl fix_sqrt .type fix_sqrt, @function fix_sqrt: move.l %d2,-(%sp) move.l 8(%sp),%d1 move.w #24,%a0 move.l #1073741824,%d2 clr.l %d0 .L14: move.l %d0,%a1 add.l %d2,%a1 cmp.l %a1,%d1 jcs .L13 sub.l %a1,%d1 move.l %a1,%d0 add.l %d2,%d0 .L13: add.l %d1,%d1 lsr.l #1,%d2 subq.l #1,%a0 tst.l %a0 jne .L14 lsr.l #8,%d0 move.l (%sp)+,%d2 rts .size fix_sqrt, .-fix_sqrt .ident "GCC: (GNU) 9.2.0"