php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
swar.h File Reference
#include "lexbor/core/base.h"

Go to the source code of this file.

Macros

#define LEXBOR_SWAR_ONES   (~((size_t) 0) / 0xFF)
 
#define LEXBOR_SWAR_REPEAT(x)
 
#define LEXBOR_SWAR_HAS_ZERO(v)
 
#define LEXBOR_SWAR_IS_LITTLE_ENDIAN   (*(unsigned char *) &(uint16_t){1})
 

Functions

lxb_inline const lxb_char_tlexbor_swar_seek4 (const lxb_char_t *data, const lxb_char_t *end, lxb_char_t c1, lxb_char_t c2, lxb_char_t c3, lxb_char_t c4)
 
lxb_inline const lxb_char_tlexbor_swar_seek3 (const lxb_char_t *data, const lxb_char_t *end, lxb_char_t c1, lxb_char_t c2, lxb_char_t c3)
 

Macro Definition Documentation

◆ LEXBOR_SWAR_HAS_ZERO

#define LEXBOR_SWAR_HAS_ZERO ( v)
Value:
(((v) - LEXBOR_SWAR_ONES) & ~(v) & LEXBOR_SWAR_REPEAT(0x80))
uint32_t v
Definition cdf.c:1237
#define LEXBOR_SWAR_ONES
Definition swar.h:21
#define LEXBOR_SWAR_REPEAT(x)
Definition swar.h:22

Definition at line 23 of file swar.h.

◆ LEXBOR_SWAR_IS_LITTLE_ENDIAN

#define LEXBOR_SWAR_IS_LITTLE_ENDIAN   (*(unsigned char *) &(uint16_t){1})

Definition at line 24 of file swar.h.

◆ LEXBOR_SWAR_ONES

#define LEXBOR_SWAR_ONES   (~((size_t) 0) / 0xFF)

Definition at line 21 of file swar.h.

◆ LEXBOR_SWAR_REPEAT

#define LEXBOR_SWAR_REPEAT ( x)
Value:

Definition at line 22 of file swar.h.

Function Documentation

◆ lexbor_swar_seek3()

lxb_inline const lxb_char_t * lexbor_swar_seek3 ( const lxb_char_t * data,
const lxb_char_t * end,
lxb_char_t c1,
lxb_char_t c2,
lxb_char_t c3 )

Definition at line 63 of file swar.h.

◆ lexbor_swar_seek4()

lxb_inline const lxb_char_t * lexbor_swar_seek4 ( const lxb_char_t * data,
const lxb_char_t * end,
lxb_char_t c1,
lxb_char_t c2,
lxb_char_t c3,
lxb_char_t c4 )

Definition at line 33 of file swar.h.