mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-30 00:08:30 +00:00
Do some string library work
This commit is contained in:
parent
83d41e4588
commit
35203c0551
42 changed files with 1381 additions and 136 deletions
|
@ -32,7 +32,7 @@ TEST(strsak32, test) {
|
|||
|
||||
BENCH(strsak32, bench) {
|
||||
size_t wcslen_(const wchar_t *) asm("wcslen");
|
||||
wchar_t *p = gc(utf8toutf32(kHyperion, kHyperionSize, 0));
|
||||
wchar_t *p = gc(utf8to32(kHyperion, kHyperionSize, 0));
|
||||
EZBENCH_N("wcslen", kHyperionSize, wcslen_(p));
|
||||
for (int i = 128; i >= 2; i /= 2) {
|
||||
p[i - 0] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue