mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Add x86_64-linux-gnu emulator
I wanted a tiny scriptable meltdown proof way to run userspace programs and visualize how program execution impacts memory. It helps to explain how things like Actually Portable Executable works. It can show you how the GCC generated code is going about manipulating matrices and more. I didn't feel fully comfortable with Qemu and Bochs because I'm not smart enough to understand them. I wanted something like gVisor but with much stronger levels of assurances. I wanted a single binary that'll run, on all major operating systems with an embedded GPL barrier ZIP filesystem that is tiny enough to transpile to JavaScript and run in browsers too. https://justine.storage.googleapis.com/emulator625.mp4
This commit is contained in:
parent
467504308a
commit
f4f4caab0e
1052 changed files with 65667 additions and 7825 deletions
|
@ -2,10 +2,26 @@
|
|||
#define COSMOPOLITAN_LIBC_COMPLEX_H_
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
#if __STDC_VERSION__ + 0 >= 201112
|
||||
|
||||
#define complex _Complex
|
||||
#define imaginary _Imaginary
|
||||
|
||||
double cabs(complex double);
|
||||
double carg(complex double);
|
||||
double cimag(complex double);
|
||||
double creal(complex double);
|
||||
|
||||
float cabsf(complex float);
|
||||
float cargf(complex float);
|
||||
float cimagf(complex float);
|
||||
float crealf(complex float);
|
||||
|
||||
long double cabsl(complex long double);
|
||||
long double cargl(complex long double);
|
||||
long double cimagl(complex long double);
|
||||
long double creall(complex long double);
|
||||
|
||||
complex double cacos(complex double);
|
||||
complex double cacosh(complex double);
|
||||
complex double casin(complex double);
|
||||
|
@ -46,21 +62,6 @@ complex float csqrtf(complex float);
|
|||
complex float ctanf(complex float);
|
||||
complex float ctanhf(complex float);
|
||||
|
||||
double cabs(complex double);
|
||||
double carg(complex double);
|
||||
double cimag(complex double);
|
||||
double creal(complex double);
|
||||
|
||||
float cabsf(complex float);
|
||||
float cargf(complex float);
|
||||
float cimagf(complex float);
|
||||
float crealf(complex float);
|
||||
|
||||
long double cabsl(complex long double);
|
||||
long double cargl(complex long double);
|
||||
long double cimagl(complex long double);
|
||||
long double creall(complex long double);
|
||||
|
||||
complex long double cprojl(complex long double);
|
||||
complex long double csinhl(complex long double);
|
||||
complex long double csinl(complex long double);
|
||||
|
@ -81,6 +82,7 @@ complex long double clogl(complex long double);
|
|||
complex long double conjl(complex long double);
|
||||
complex long double cpowl(complex long double, complex long double);
|
||||
|
||||
#endif /* C11 */
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_LIBC_COMPLEX_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue