mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-05 02:38:31 +00:00
Make improvements
- wcsstr() is now linearly complex - strstr16() is now linearly complex - strstr() is now vectorized on aarch64 (10x) - strstr() now uses KMP on pathological cases - memmem() is now vectorized on aarch64 (10x) - memmem() now uses KMP on pathological cases - Disable shared_ptr::owner_before until fixed - Make iswlower(), iswupper() consistent with glibc - Remove figure space from iswspace() implementation - Include line and paragraph separator in iswcntrl() - Use Musl wcwidth(), iswalpha(), iswpunct(), towlower(), towupper()
This commit is contained in:
parent
e1528a71e2
commit
7c83f4abc8
67 changed files with 5602 additions and 5165 deletions
|
@ -69,7 +69,7 @@ struct Derived : Base
|
|||
int
|
||||
main()
|
||||
{
|
||||
int a, b;
|
||||
int a;
|
||||
|
||||
{
|
||||
// Shouldn't cause memory leaks.
|
||||
|
@ -182,6 +182,7 @@ main()
|
|||
return 13;
|
||||
}
|
||||
|
||||
#if 0 // TODO(mrdomino): find a different way
|
||||
{
|
||||
// owner_before works across shared and weak pointers.
|
||||
shared_ptr<int> x(&a, CallG());
|
||||
|
@ -191,6 +192,7 @@ main()
|
|||
if (!x.owner_before(weak_ptr<int>(y)))
|
||||
return 15;
|
||||
}
|
||||
#endif
|
||||
|
||||
{
|
||||
// Use counts work like you'd expect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue