projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use explicit visibility to optimize a few hot-path function calls
[musl]
/
src
/
multibyte
/
wcstombs.c
diff --git
a/src/multibyte/wcstombs.c
b/src/multibyte/wcstombs.c
index
b9c1b18
..
b6ae473
100644
(file)
--- a/
src/multibyte/wcstombs.c
+++ b/
src/multibyte/wcstombs.c
@@
-11,7
+11,8
@@
#include "internal.h"
-size_t wcstombs(char *
s, const wchar_t *
ws, size_t n)
+size_t wcstombs(char *
restrict s, const wchar_t *restrict
ws, size_t n)
{
- return wcsrtombs(s, &ws, n, 0);
+ const wchar_t * x = ws;
+ return wcsrtombs(s, &x, n, 0);
}