llvm::APInt::tcExtract

Extract a contiguous bit-field from one bignum into another.

Synopsis

Declared in <llvm/ADT/APInt.h>

static
void
tcExtract(
    WordType* dst,
    unsigned int dstCount,
    WordType const* src,
    unsigned int srcBits,
    unsigned int srcLSB);

Description

Copy the bit vector of width srcBITS from SRC, starting at bit srcLSB, to DST, of dstCOUNT parts, such that the bit srcLSB becomes the least significant bit of DST. All high bits above srcBITS in DST are zero-filled.

Parameters

NameDescription
dstDestination limb array
dstCountNumber of limbs in dst
srcSource limb array
srcBitsWidth of the bit-field to copy
srcLSBLeast-significant bit index of the field in src