cosmopolitan/libc/intrin
Justine Tunney 9e3e985ae5 Make terminal ui binaries work well everywhere
Here's some screenshots of an emulator tui program that was compiled on
Linux, then scp'd it to Windows, Mac, and FreeBSD.

https://justine.storage.googleapis.com/blinkenlights-cmdexe.png
https://justine.storage.googleapis.com/blinkenlights-imac.png
https://justine.storage.googleapis.com/blinkenlights-freebsd.png
https://justine.storage.googleapis.com/blinkenlights-lisp.png

How is this even possible that we have a nontrivial ui binary that just
works on Mac, Windows, Linux, and BSD? Surely a first ever achievement.

Fixed many bugs. Bootstrapped John McCarthy's metacircular evaluator on
bare metal in half the size of Altair BASIC (about 2.5kb) and ran it in
emulator for fun and profit.
2020-10-19 06:38:31 -07:00
..
intrin.mk Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
macros.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
mpsadbw.c Make improvements 2020-09-14 00:02:34 -07:00
mpsadbw.h Make improvements 2020-09-14 00:02:34 -07:00
mpsadbws.S Make improvements 2020-09-14 00:02:34 -07:00
pabsb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packssdw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packssdw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packsswb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packsswb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packusdw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packusdw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packuswb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packuswb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddsb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddusb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddusb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddusw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddusw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
palignr.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
palignr.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
palignrs.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pand.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pand.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pandn.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pandn.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pavgb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pavgb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pavgw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pavgw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtb.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
pcmpgtb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pdep.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pext.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaddubsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaddubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaddwd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaddwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaxsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaxsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaxub.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaxub.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pminsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pminsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pminub.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pminub.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmovmskb.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
pmovmskb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhrsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhrsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhuw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhuw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulld.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulld.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmullw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmullw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmuludq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmuludq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
por.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
por.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psadbw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psadbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufd.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
pshufd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufhw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufhw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshuflw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshuflw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslld.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslld.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslldq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslldq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslldqs.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslldv.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllqv.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllwv.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrad.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrad.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psradv.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psraw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psraw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrawv.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrld.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrld.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrldq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrldq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrldqs.S Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrldv.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlqv.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlwv.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubb.c Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
psubb.h Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
psubd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubsb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubsw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubusb.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubusb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubusw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubusw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhbw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhdq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhqdq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhqdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhwd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklbw.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckldq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckldq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklqdq.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklqdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklwd.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pxor.c Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pxor.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
repmovsb.h Get address sanitizer mostly working 2020-09-03 05:44:37 -07:00
repstosb.h Make improvements 2020-09-14 00:02:34 -07:00
shufpd.c Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
shufpd.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
shufps.c Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
shufps.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00