bstr: use memchr and memrchr for bstrchr and bstrrchr

May be faster to use optimized variants instead of simple loop.
This commit is contained in:
Kacper Michajłow committed 2024-06-06 21:42:58 +02:00
1 parent a32674bb29
commit a8d95fd51a
2 files changed
+13 -4

No files matched your search

+2
View File
@@ -428,6 +428,8 @@ endif
features += {'ppoll': cc.has_function('ppoll', args: '-D_GNU_SOURCE',
prefix: '#include <poll.h>')}
features += {'memrchr': cc.has_function('memrchr', args: '-D_GNU_SOURCE',
prefix: '#include <string.h>')}
cd_devices = {
'windows': 'D:',