Improve documentation

The Cosmo API documentation page is pretty good now
https://justine.lol/cosmopolitan/documentation.html
This commit is contained in:
Justine Tunney 2020-12-27 07:02:35 -08:00
parent 13437dd19b
commit 1bc3a25505
367 changed files with 2542 additions and 26178 deletions

View file

@ -26,10 +26,10 @@
hidden uint64_t g_rando64;
textstartup static void g_rando64_init() {
register intptr_t *auxv asm("r15"); /* @see libc/crt/crt.S */
asm volatile("" : "=r"(auxv));
intptr_t *auxvp;
if (!IsXnu() && !IsWindows()) {
for (intptr_t *auxvp = auxv; auxvp[0]; auxvp += 2) {
asm("mov\t%%r15,%0" : "=r"(auxvp)); /* libc/crt/crt.S */
for (; auxvp[0]; auxvp += 2) {
if (auxvp[0] == AT_RANDOM) {
uint8_t(*sysrandseed)[16] = (uint8_t(*)[16])auxvp[1];
if (sysrandseed) g_rando64 ^= read64le(&(*sysrandseed)[0]);