mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Add tool for viewing memory
https://justine.storage.googleapis.com/memzoom/index.html
This commit is contained in:
parent
2d80bbc802
commit
9fe95ef12b
22 changed files with 1511 additions and 1028 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue