Portable bit‐operation backend using compiler builtins.

Synopsis

Declared in <folly/compression/Instructions.h>

struct Default;

Static Member Functions

Name

Description

bextr

Extract length bits starting from start from value. Only bits [0:63] will be extracted. All higher order bits in the result will be zeroed. If no bits are extracted, return 0.

blsr

Clears the lowest set bit of a value.

bzhi

Clear high bits starting at position index.

clz

Counts leading zero bits in a nonzero value.

ctz

Counts trailing zero bits in a nonzero value.

name

Returns the backend name.

popcount

Counts the set bits in a value.

supported

Reports whether this backend runs on the given CPU.

Derived Classes

Name

Description

Nehalem

Created with MrDocs