cosmopolitan/libc/intrin
Justine Tunney 8c4cce043c Make improvements to redbean
The following Lua APIs have been added:

  - IsDaemon() → bool
  - ProgramPidPath(str)

The following Lua hooks have been added:

  - OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
  - OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
  - OnProcessDestroy(pid:int)
  - OnServerStart()
  - OnServerStop()
  - OnWorkerStart()
  - OnWorkerStop()

redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.

This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.

This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 15:19:37 -07:00
..
addvdi3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
addvsi3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
addvti3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
asan.c Make improvements to redbean 2021-07-10 15:19:37 -07:00
asan.internal.h Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
intrin.mk Remove undefined behaviors 2021-05-16 11:16:28 -07:00
macros.h Add chibicc 2020-12-06 16:20:21 -08:00
mpsadbw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
mpsadbw.h Make minor improvements 2020-12-23 23:42:56 -08:00
mpsadbws.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
mulvdi3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
mulvsi3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
mulvti3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
negvdi2.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
negvsi2.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
negvti2.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ntgetversion.c Eliminate some flakes 2021-02-03 06:25:27 -08:00
onarithmeticoverflow.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pabsb.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pabsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsd.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
pabsd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pabsw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pabsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packssdw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
packssdw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packsswb.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
packsswb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packusdw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
packusdw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
packuswb.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
packuswb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddb.c Change license 2020-12-27 17:18:44 -08:00
paddb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddd.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
paddd.h Remove undefined behaviors 2021-05-16 11:16:28 -07:00
paddq.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
paddq.h Remove undefined behaviors 2021-05-16 11:16:28 -07:00
paddsb.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
paddsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddsw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
paddsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddusb.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
paddusb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddusw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
paddusw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
paddw.c Change license 2020-12-27 17:18:44 -08:00
paddw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
palignr.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
palignr.h Make minor improvements 2020-12-23 23:42:56 -08:00
palignrs.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pand.c Change license 2020-12-27 17:18:44 -08:00
pand.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pandn.c Change license 2020-12-27 17:18:44 -08:00
pandn.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pavgb.c Change license 2020-12-27 17:18:44 -08:00
pavgb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pavgw.c Change license 2020-12-27 17:18:44 -08:00
pavgw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqb.c Change license 2020-12-27 17:18:44 -08:00
pcmpeqb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqd.c Change license 2020-12-27 17:18:44 -08:00
pcmpeqd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpeqw.c Change license 2020-12-27 17:18:44 -08:00
pcmpeqw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtb.c Change license 2020-12-27 17:18:44 -08:00
pcmpgtb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtd.c Change license 2020-12-27 17:18:44 -08:00
pcmpgtd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pcmpgtw.c Change license 2020-12-27 17:18:44 -08:00
pcmpgtw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pdep.c Change license 2020-12-27 17:18:44 -08:00
pdep.h Make improvements 2020-12-01 03:43:40 -08:00
pext.c Change license 2020-12-27 17:18:44 -08:00
pext.h Make improvements 2020-12-01 03:43:40 -08:00
phaddd.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
phaddd.h Remove undefined behaviors 2021-05-16 11:16:28 -07:00
phaddsw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
phaddsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phaddw.c Change license 2020-12-27 17:18:44 -08:00
phaddw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubd.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
phsubd.h Remove undefined behaviors 2021-05-16 11:16:28 -07:00
phsubsw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
phsubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
phsubw.c Change license 2020-12-27 17:18:44 -08:00
phsubw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaddubsw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pmaddubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaddwd.c Change license 2020-12-27 17:18:44 -08:00
pmaddwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaxsw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pmaxsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmaxub.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pmaxub.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pminsw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pminsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pminub.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pminub.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmovmskb.c Change license 2020-12-27 17:18:44 -08:00
pmovmskb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhrsw.c Change license 2020-12-27 17:18:44 -08:00
pmulhrsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhuw.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
pmulhuw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulhw.c Change license 2020-12-27 17:18:44 -08:00
pmulhw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmulld.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
pmulld.h Remove undefined behaviors 2021-05-16 11:16:28 -07:00
pmullw.c Change license 2020-12-27 17:18:44 -08:00
pmullw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pmuludq.c Change license 2020-12-27 17:18:44 -08:00
pmuludq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
por.c Change license 2020-12-27 17:18:44 -08:00
por.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psadbw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
psadbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufb.c Change license 2020-12-27 17:18:44 -08:00
pshufb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufd.c Change license 2020-12-27 17:18:44 -08:00
pshufd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufhw.c Change license 2020-12-27 17:18:44 -08:00
pshufhw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshuflw.c Change license 2020-12-27 17:18:44 -08:00
pshuflw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pshufw.c Change license 2020-12-27 17:18:44 -08:00
pshufw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignb.c Change license 2020-12-27 17:18:44 -08:00
psignb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignd.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psignd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psignw.c Change license 2020-12-27 17:18:44 -08:00
psignw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslld.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
pslld.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pslldq.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
pslldq.h Make minor improvements 2020-12-23 23:42:56 -08:00
pslldqs.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
pslldv.c Change license 2020-12-27 17:18:44 -08:00
psllq.c Change license 2020-12-27 17:18:44 -08:00
psllq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllqv.c Change license 2020-12-27 17:18:44 -08:00
psllw.c Change license 2020-12-27 17:18:44 -08:00
psllw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psllwv.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psrad.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psrad.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psradv.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psraw.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psraw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrawv.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psrld.c Change license 2020-12-27 17:18:44 -08:00
psrld.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrldq.c Make more functions friendly to Address Sanitizer 2021-02-02 03:45:31 -08:00
psrldq.h Make minor improvements 2020-12-23 23:42:56 -08:00
psrldqs.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
psrldv.c Change license 2020-12-27 17:18:44 -08:00
psrlq.c Change license 2020-12-27 17:18:44 -08:00
psrlq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlqv.c Change license 2020-12-27 17:18:44 -08:00
psrlw.c Change license 2020-12-27 17:18:44 -08:00
psrlw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psrlwv.c Change license 2020-12-27 17:18:44 -08:00
psubb.c Change license 2020-12-27 17:18:44 -08:00
psubb.h Make terminal ui binaries work well everywhere 2020-10-19 06:38:31 -07:00
psubd.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psubd.h Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psubq.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psubq.h Remove undefined behaviors 2021-05-16 11:16:28 -07:00
psubsb.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
psubsb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubsw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
psubsw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubusb.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
psubusb.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubusw.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
psubusw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
psubw.c Change license 2020-12-27 17:18:44 -08:00
psubw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhbw.c Change license 2020-12-27 17:18:44 -08:00
punpckhbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhdq.c Change license 2020-12-27 17:18:44 -08:00
punpckhdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhqdq.c Change license 2020-12-27 17:18:44 -08:00
punpckhqdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckhwd.c Change license 2020-12-27 17:18:44 -08:00
punpckhwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklbw.c Change license 2020-12-27 17:18:44 -08:00
punpcklbw.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpckldq.c Change license 2020-12-27 17:18:44 -08:00
punpckldq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklqdq.c Change license 2020-12-27 17:18:44 -08:00
punpcklqdq.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
punpcklwd.c Change license 2020-12-27 17:18:44 -08:00
punpcklwd.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
pxor.c Change license 2020-12-27 17:18:44 -08: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 Change license 2020-12-27 17:18:44 -08:00
shufpd.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
shufps.c Change license 2020-12-27 17:18:44 -08:00
shufps.h Fix bugs and have emulator emulate itself 2020-08-31 05:17:31 -07:00
somanyasan.S Make redbean StoreAsset() work better 2021-05-14 05:44:37 -07:00
subvdi3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
subvsi3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
subvti3.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ubsan.c Remove undefined behaviors 2021-05-16 11:16:28 -07:00