Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-08-12 | libc/stdlib: Use __builtin_mul_overflow for reallocarray and calloc | Keith Packard via Newlib | 1 | -12/+5 | |
This built-in function (available in both gcc and clang) is more efficient and generates shorter code than open-coding the test. Signed-off-by: Keith Packard <keithp@keithp.com> | |||||
2017-04-04 | Add BSD-specific reallocarray() | Sebastian Huber | 1 | -0/+42 | |
It is available in FreeBSD, NetBSD and OpenBSD, but not in glibc. It is used for example by OpenSSH. |