diff options
Diffstat (limited to 'elymas/lib/math.ey')
| -rw-r--r-- | elymas/lib/math.ey | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/elymas/lib/math.ey b/elymas/lib/math.ey index db04c7b..cc9b288 100644 --- a/elymas/lib/math.ey +++ b/elymas/lib/math.ey @@ -24,4 +24,26 @@ } /base deff > /math defv +# FIXME: INTEGRATE +# # 0 -> float +# # 0 <- the int portion of the float, rounded towards zero +# [[ +# /rbx :popqReg +# +# # allocate result int +# ::internalAllocateInteger /rax :movqImmReg +# /rax :callqReg +# +# # actual conversion +# /rcx :popqReg +# 8 /rcx :fld64MemDisp8 +# 8 /rax :fistp64MemDisp8 +# +# # push int on program stack +# /rax :pushqReg +# +# /rbx :pushqReg +# :retn +# ]] /eytrunc defv + # vim: syn=elymas |
