mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Fold LIBC_RAND into LIBC_STDIO/TINYMATH/INTRIN
This commit is contained in:
parent
05b8f82371
commit
8a0a2c0c36
183 changed files with 149 additions and 322 deletions
1
third_party/bzip2/bzip2.mk
vendored
1
third_party/bzip2/bzip2.mk
vendored
|
@ -28,7 +28,6 @@ THIRD_PARTY_BZIP2_A_DIRECTDEPS = \
|
|||
LIBC_LOG \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_RAND \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
|
|
2
third_party/bzip2/spewG.c
vendored
2
third_party/bzip2/spewG.c
vendored
|
@ -1,4 +1,4 @@
|
|||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
/* clang-format off */
|
||||
|
||||
|
|
2
third_party/dlmalloc/dlmalloc.c
vendored
2
third_party/dlmalloc/dlmalloc.c
vendored
|
@ -9,7 +9,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/nexgen32e/bsr.h"
|
||||
#include "libc/nexgen32e/rdtsc.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/runtime/sysconf.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
|
|
1
third_party/dlmalloc/dlmalloc.mk
vendored
1
third_party/dlmalloc/dlmalloc.mk
vendored
|
@ -31,7 +31,6 @@ THIRD_PARTY_DLMALLOC_A_DIRECTDEPS = \
|
|||
LIBC_NEXGEN32E \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STR \
|
||||
LIBC_RAND \
|
||||
LIBC_STUBS \
|
||||
LIBC_SYSV \
|
||||
LIBC_SYSV_CALLS \
|
||||
|
|
|
@ -68,7 +68,6 @@ THIRD_PARTY_DOUBLECONVERSION_A_DIRECTDEPS = \
|
|||
LIBC_NEXGEN32E \
|
||||
LIBC_MEM \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_RAND \
|
||||
LIBC_STDIO \
|
||||
LIBC_FMT \
|
||||
LIBC_SYSV \
|
||||
|
|
1
third_party/libcxx/libcxx.mk
vendored
1
third_party/libcxx/libcxx.mk
vendored
|
@ -156,7 +156,6 @@ THIRD_PARTY_LIBCXX_A_DIRECTDEPS = \
|
|||
LIBC_INTRIN \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_RAND \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
|
|
2
third_party/libcxx/random.cc
vendored
2
third_party/libcxx/random.cc
vendored
|
@ -6,7 +6,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "third_party/libcxx/__config"
|
||||
#include "third_party/libcxx/random"
|
||||
#include "third_party/libcxx/system_error"
|
||||
|
|
1
third_party/mbedtls/mbedtls.mk
vendored
1
third_party/mbedtls/mbedtls.mk
vendored
|
@ -22,7 +22,6 @@ THIRD_PARTY_MBEDTLS_A_DIRECTDEPS = \
|
|||
LIBC_INTRIN \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_RAND \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_SOCK \
|
||||
LIBC_LOG \
|
||||
|
|
2
third_party/mbedtls/rando.c
vendored
2
third_party/mbedtls/rando.c
vendored
|
@ -17,7 +17,7 @@
|
|||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/sysv/consts/grnd.h"
|
||||
#include "third_party/mbedtls/entropy_poll.h"
|
||||
|
||||
|
|
2
third_party/mbedtls/rsa.c
vendored
2
third_party/mbedtls/rsa.c
vendored
|
@ -17,7 +17,7 @@
|
|||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/calls/strace.internal.h"
|
||||
#include "libc/intrin/kprintf.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "third_party/mbedtls/common.h"
|
||||
#include "third_party/mbedtls/error.h"
|
||||
|
|
2
third_party/mbedtls/test/everest_test.c
vendored
2
third_party/mbedtls/test/everest_test.c
vendored
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
|
|
2
third_party/mbedtls/test/lib.c
vendored
2
third_party/mbedtls/test/lib.c
vendored
|
@ -29,7 +29,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/nexgen32e/vendor.internal.h"
|
||||
#include "libc/nt/runtime.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/internal.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/runtime/symbols.internal.h"
|
||||
|
|
2
third_party/mbedtls/test/secp384r1_test.c
vendored
2
third_party/mbedtls/test/secp384r1_test.c
vendored
|
@ -16,7 +16,7 @@
|
|||
│ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR │
|
||||
│ PERFORMANCE OF THIS SOFTWARE. │
|
||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/testlib/ezbench.h"
|
||||
|
|
1
third_party/mbedtls/test/test.mk
vendored
1
third_party/mbedtls/test/test.mk
vendored
|
@ -101,7 +101,6 @@ THIRD_PARTY_MBEDTLS_TEST_DIRECTDEPS = \
|
|||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_NT_KERNEL32 \
|
||||
LIBC_RAND \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
|
|
2
third_party/mbedtls/test/test_suite_ssl.c
vendored
2
third_party/mbedtls/test/test_suite_ssl.c
vendored
|
@ -19,7 +19,7 @@
|
|||
#include "third_party/mbedtls/ssl_invasive.h"
|
||||
#include "libc/testlib/testlib.h"
|
||||
#include "libc/log/log.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/intrin/safemacros.internal.h"
|
||||
#include "third_party/mbedtls/test/test.inc"
|
||||
/*
|
||||
|
|
2
third_party/musl/crypt_sha256.c
vendored
2
third_party/musl/crypt_sha256.c
vendored
|
@ -33,7 +33,7 @@
|
|||
#include "libc/literal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/nexgen32e/nexgen32e.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
|
|
2
third_party/musl/crypt_sha512.c
vendored
2
third_party/musl/crypt_sha512.c
vendored
|
@ -33,7 +33,7 @@
|
|||
#include "libc/literal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/nexgen32e/nexgen32e.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
|
|
2
third_party/musl/encrypt.c
vendored
2
third_party/musl/encrypt.c
vendored
|
@ -32,7 +32,7 @@
|
|||
#include "libc/limits.h"
|
||||
#include "libc/literal.h"
|
||||
#include "libc/mem/mem.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/temp.h"
|
||||
#include "libc/sysv/consts/exit.h"
|
||||
|
|
2
third_party/python/Modules/_randommodule.c
vendored
2
third_party/python/Modules/_randommodule.c
vendored
|
@ -7,7 +7,7 @@
|
|||
#include "libc/intrin/bits.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/sysv/consts/grnd.h"
|
||||
#include "third_party/python/Include/floatobject.h"
|
||||
|
|
2
third_party/python/Modules/expat/xmlparse.c
vendored
2
third_party/python/Modules/expat/xmlparse.c
vendored
|
@ -6,7 +6,7 @@
|
|||
#include "libc/mem/mem.h"
|
||||
#include "libc/nexgen32e/rdtsc.h"
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/stdio/stdio.h"
|
||||
#include "libc/str/str.h"
|
||||
|
|
2
third_party/python/Python/random.c
vendored
2
third_party/python/Python/random.c
vendored
|
@ -11,7 +11,7 @@
|
|||
#include "libc/fmt/conv.h"
|
||||
#include "libc/macros.internal.h"
|
||||
#include "libc/nexgen32e/rdtsc.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/runtime/runtime.h"
|
||||
#include "libc/str/str.h"
|
||||
#include "libc/sysv/consts/auxv.h"
|
||||
|
|
2
third_party/python/python.mk
vendored
2
third_party/python/python.mk
vendored
|
@ -449,7 +449,6 @@ THIRD_PARTY_PYTHON_STAGE1_A_DIRECTDEPS = \
|
|||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_NT_KERNEL32 \
|
||||
LIBC_RAND \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
|
@ -1130,7 +1129,6 @@ THIRD_PARTY_PYTHON_STAGE2_A_DIRECTDEPS = \
|
|||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_NT_KERNEL32 \
|
||||
LIBC_RAND \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_SOCK \
|
||||
LIBC_STDIO \
|
||||
|
|
2
third_party/sqlite3/os_unix.c
vendored
2
third_party/sqlite3/os_unix.c
vendored
|
@ -44,7 +44,7 @@
|
|||
** * Definitions of sqlite3_vfs objects for all locking methods
|
||||
** plus implementations of sqlite3_os_init() and sqlite3_os_end().
|
||||
*/
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
#include "libc/sysv/consts/lock.h"
|
||||
#include "libc/calls/struct/stat.h"
|
||||
#include "libc/sysv/consts/s.h"
|
||||
|
|
1
third_party/sqlite3/sqlite3.mk
vendored
1
third_party/sqlite3/sqlite3.mk
vendored
|
@ -56,7 +56,6 @@ THIRD_PARTY_SQLITE3_A_DIRECTDEPS = \
|
|||
LIBC_SYSV \
|
||||
LIBC_SYSV_CALLS \
|
||||
LIBC_TIME \
|
||||
LIBC_RAND \
|
||||
LIBC_TINYMATH \
|
||||
LIBC_UNICODE \
|
||||
THIRD_PARTY_GDTOA \
|
||||
|
|
2
third_party/zip/crypt.c
vendored
2
third_party/zip/crypt.c
vendored
|
@ -3,7 +3,7 @@
|
|||
#include "third_party/zip/zip.h"
|
||||
#include "third_party/zip/crypt.h"
|
||||
#include "third_party/zip/ttyio.h"
|
||||
#include "libc/rand/rand.h"
|
||||
#include "libc/stdio/rand.h"
|
||||
/*
|
||||
Copyright (c) 1990-2008 Info-ZIP. All rights reserved.
|
||||
|
||||
|
|
1
third_party/zip/zip.mk
vendored
1
third_party/zip/zip.mk
vendored
|
@ -85,7 +85,6 @@ THIRD_PARTY_ZIP_DIRECTDEPS = \
|
|||
LIBC_LOG \
|
||||
LIBC_MEM \
|
||||
LIBC_NEXGEN32E \
|
||||
LIBC_RAND \
|
||||
LIBC_RUNTIME \
|
||||
LIBC_STDIO \
|
||||
LIBC_STR \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue