Fast memchr() and strlen() using SSE2 instructions.
More...
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <memory.h>
#include <vector>
#include <xmmintrin.h>
Go to the source code of this file.
Fast memchr() and strlen() using SSE2 instructions.
- Copyright
- 2008 MITSUNARI Shigeo at Cybozu Labs, Inc.
◆ _memchr_bsf
#define _memchr_bsf |
( |
|
x | ) |
__builtin_ctz(x) |
◆ memchrSSE2()
void* memchrSSE2 |
( |
const void * |
ptr, |
|
|
int |
c, |
|
|
size_t |
len |
|
) |
| |
|
inline |
◆ strlenSSE2()
size_t strlenSSE2 |
( |
const char * |
p | ) |
|
|
inline |