cosmopolitan/libc/mem
Justine Tunney 868af3f950 Import C++ Standard Template Library
You can now use the hardest fastest and most dangerous language there is
with Cosmopolitan. So far about 75% of LLVM libcxx has been added. A few
breaking changes needed to be made to help this go smoothly.

- Rename nothrow to dontthrow
- Rename nodiscard to dontdiscard
- Add some libm functions, e.g. lgamma, nan, etc.
- Change intmax_t from int128 to int64 like everything else
- Introduce %jjd formatting directive for int128_t
- Introduce strtoi128(), strtou128(), etc.
- Rename bsrmax() to bsr128()

Some of the templates that should be working currently are std::vector,
std::string, std::map, std::set, std::deque, etc.
2022-03-22 06:41:54 -07:00
..
cxx Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
hook Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
aligned_alloc.c Improve memory safety 2021-10-13 17:27:13 -07:00
alloca.h Initial import 2020-06-15 07:18:57 -07:00
arena.c Change noinline to dontinline (#312) 2021-11-12 15:12:18 -08:00
arena.h Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
asprintf.c Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
balloc.c Improve memory safety 2021-10-13 17:27:13 -07:00
bfree.c Change license 2020-12-27 17:18:44 -08:00
bulk_free.S Make fixes, improvements, and chibicc python bindings 2021-10-08 08:41:57 -07:00
calloc.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
defer.greg.c Improve memory safety 2021-10-13 17:27:13 -07:00
fmt.h Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00
free.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
gc.c Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
get_current_dir_name.c Import C++ Standard Template Library 2022-03-22 06:41:54 -07:00
internal.h Improve memory safety 2021-10-13 17:27:13 -07:00
malloc.S Improve memory safety 2021-10-13 17:27:13 -07:00
malloc_trim.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
malloc_usable_size.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
mem.h Import C++ Standard Template Library 2022-03-22 06:41:54 -07:00
mem.mk Fix link order in cosmopolitan.a 2021-01-16 12:05:41 -08:00
memalign.S Improve memory safety 2021-10-13 17:27:13 -07:00
posix_memalign.c Improve memory safety 2021-10-13 17:27:13 -07:00
putenv.c Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
pvalloc.c Improve memory safety 2021-10-13 17:27:13 -07:00
realloc.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
realloc_in_place.S Clean old .source directive out of asm code 2022-03-18 12:43:21 -07:00
reallocarray.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
setenv.c Introduce --strace flag for system call tracing 2022-03-18 18:07:28 -07:00
strdup.c Change license 2020-12-27 17:18:44 -08:00
strndup.c Change license 2020-12-27 17:18:44 -08:00
unhexstr.c Import C++ Standard Template Library 2022-03-22 06:41:54 -07:00
valloc.c Improve memory safety 2021-10-13 17:27:13 -07:00
vasprintf.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
wcsdup.c Change license 2020-12-27 17:18:44 -08:00