Add tool for viewing memory

https://justine.storage.googleapis.com/memzoom/index.html
This commit is contained in:
Justine Tunney 2020-11-06 20:02:53 -08:00
parent 2d80bbc802
commit 9fe95ef12b
22 changed files with 1511 additions and 1028 deletions

View file

@ -24,7 +24,8 @@
/
/ @param 𝑥 is a double passed in the lower quadword of %xmm0
/ @return result in lower quadword of %xmm0
log2: push %rbp
tinymath_log2:
push %rbp
mov %rsp,%rbp
.profilable
push %rax
@ -36,4 +37,5 @@ log2: push %rbp
movsd -8(%rbp),%xmm0
leave
ret
.endfn log2,globl
.endfn tinymath_log2,globl
.alias tinymath_log2,log2

View file

@ -20,7 +20,12 @@
#include "libc/macros.h"
.source __FILE__
log2f: push %rbp
/ Calculates log𝑥.
/
/ @param 𝑥 is a float passed in the lower quarter of %xmm0
/ @return result in lower quarter of %xmm0
tinymath_log2f:
push %rbp
mov %rsp,%rbp
.profilable
push %rax
@ -32,4 +37,5 @@ log2f: push %rbp
movss 4(%rsp),%xmm0
leave
ret
.endfn log2f,globl
.endfn tinymath_log2f,globl
.alias tinymath_log2f,log2f

View file

@ -25,7 +25,8 @@
/ @param 𝑥 is an 80-bit long double passed on stack in 16-bytes
/ @return result in %st
/ @see ilogbl()
log2l: push %rbp
tinymath_log2l:
push %rbp
mov %rsp,%rbp
.profilable
fld1
@ -33,4 +34,5 @@ log2l: push %rbp
fyl2x
pop %rbp
ret
.endfn log2l,globl
.endfn tinymath_log2l,globl
.alias tinymath_log2l,log2l