mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 20:28:30 +00:00
Add more missing C / C++ headers
This commit is contained in:
parent
b9dc74b672
commit
8dd4ec68d0
152 changed files with 30711 additions and 6267 deletions
|
@ -64,10 +64,14 @@ noasan static inline const wchar_t *wmemrchr_sse(const wchar_t *s, wchar_t c,
|
|||
* @return is pointer to first instance of c or NULL if not found
|
||||
* @asyncsignalsafe
|
||||
*/
|
||||
void *wmemrchr(const void *s, wchar_t c, size_t n) {
|
||||
void *wmemrchr(const wchar_t *s, wchar_t c, size_t n) {
|
||||
size_t bytes;
|
||||
const void *r;
|
||||
if (!IsTiny() && X86_HAVE(SSE)) {
|
||||
if (IsAsan()) __asan_verify(s, n * 4);
|
||||
if (IsAsan()) {
|
||||
if (__builtin_mul_overflow(n, sizeof(wchar_t), &bytes)) bytes = -1;
|
||||
__asan_verify(s, bytes);
|
||||
}
|
||||
r = wmemrchr_sse(s, c, n);
|
||||
} else {
|
||||
r = wmemrchr_pure(s, c, n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue