2024-11-06 11:35:01 -06:00
|
|
|
main:
|
2024-11-07 03:43:29 -06:00
|
|
|
ADDI64 r254, r254, -24d
|
|
|
|
ST r31, r254, 0a, 24h
|
2024-11-06 11:35:01 -06:00
|
|
|
LI32 r32, 1148846080w
|
|
|
|
CP r2, r32
|
|
|
|
JAL r31, r0, :sin
|
|
|
|
FMUL32 r33, r1, r32
|
2024-11-07 03:43:29 -06:00
|
|
|
FTI32 r1, r33, 1b
|
|
|
|
LD r31, r254, 0a, 24h
|
|
|
|
ADDI64 r254, r254, 24d
|
2024-11-06 11:35:01 -06:00
|
|
|
JALA r0, r31, 0a
|
|
|
|
sin:
|
2024-11-13 03:28:16 -06:00
|
|
|
LI32 r6, 1124073472w
|
|
|
|
LI32 r7, 1078530011w
|
|
|
|
FMUL32 r9, r2, r6
|
|
|
|
FDIV32 r11, r9, r7
|
|
|
|
FTI32 r1, r11, 1b
|
|
|
|
ANDI r12, r1, 255d
|
|
|
|
ITF64 r6, r1
|
|
|
|
MULI64 r5, r12, 4d
|
|
|
|
LRA r4, r0, :SIN_TABLE
|
|
|
|
LI32 r9, 1086918619w
|
|
|
|
FC64T32 r11, r6, 1b
|
|
|
|
ADDI64 r6, r1, 64d
|
|
|
|
ADD64 r10, r4, r5
|
|
|
|
LI32 r3, 1132462080w
|
|
|
|
FMUL32 r8, r11, r9
|
|
|
|
ANDI r9, r6, 255d
|
|
|
|
LI32 r7, 1056964608w
|
|
|
|
LD r5, r10, 0a, 4h
|
|
|
|
FDIV32 r10, r8, r3
|
|
|
|
MULI64 r8, r9, 4d
|
|
|
|
FMUL32 r12, r5, r7
|
|
|
|
FSUB32 r1, r2, r10
|
|
|
|
ADD64 r11, r4, r8
|
|
|
|
FMUL32 r4, r1, r12
|
|
|
|
LD r2, r11, 0a, 4h
|
|
|
|
FSUB32 r7, r2, r4
|
|
|
|
FMUL32 r9, r7, r1
|
|
|
|
FADD32 r1, r5, r9
|
2024-11-06 11:35:01 -06:00
|
|
|
JALA r0, r31, 0a
|
2024-11-07 03:43:29 -06:00
|
|
|
code size: 1303
|
|
|
|
ret: 826
|
2024-11-06 11:35:01 -06:00
|
|
|
status: Ok(())
|