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:
1 parent
a32674bb29
commit
a8d95fd51a
2 files changed
+13
-4
No files matched your search
@@ -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:',
|
||||
|
||||
Reference in new issue
Block a user