FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
memchrSSE2.h File Reference

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.

Macros

#define _memchr_bsf(x)   __builtin_ctz(x)
 

Functions

void * memchrSSE2 (const void *ptr, int c, size_t len)
 
size_t strlenSSE2 (const char *p)
 

Detailed Description

Fast memchr() and strlen() using SSE2 instructions.

Macro Definition Documentation

◆ _memchr_bsf

#define _memchr_bsf (   x)    __builtin_ctz(x)

Function Documentation

◆ memchrSSE2()

void* memchrSSE2 ( const void *  ptr,
int  c,
size_t  len 
)
inline

References _memchr_bsf.

◆ strlenSSE2()

size_t strlenSSE2 ( const char *  p)
inline

References _memchr_bsf, and assert.

Generated: Fri Jul 31 2020 18:19:15
Support Information