Skip to content

Instantly share code, notes, and snippets.

@castleberrysam
Created April 26, 2020 04:25
Show Gist options
  • Save castleberrysam/5faecf00005cfc397172ded9f10f784e to your computer and use it in GitHub Desktop.
Save castleberrysam/5faecf00005cfc397172ded9f10f784e to your computer and use it in GitHub Desktop.
ARM_FUNC_ALIAS aeabi_ui2d floatunsidf
CFI_START_FUNCTION
teq r0, #0
do_it eq, t
moveq r1, #0
RETc(eq)
do_push {r4, r5, lr} @ sp -= 12
.cfi_adjust_cfa_offset 12 @ CFA is now sp + previousOffset + 12
.cfi_rel_offset r4, 0 @ Registers are saved from sp + 0 to sp + 8.
.cfi_rel_offset r5, 4
.cfi_rel_offset lr, 8
mov r4, #0x400 @ initial exponent
add r4, r4, #(52-1 - 1)
mov r5, #0 @ sign bit is 0
.ifnc xl, r0
mov xl, r0
.endif
mov xh, #0
b LSYM(Lad_l)
CFI_END_FUNCTION
FUNC_END aeabi_ui2d
FUNC_END floatunsidf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment