Extract a contiguous bit-field from one bignum into another.
Declared in <llvm/ADT/APInt.h>
static
void
tcExtract(
WordType* dst,
unsigned int dstCount,
WordType const* src,
unsigned int srcBits,
unsigned int srcLSB);
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.
| Name | Description |
|---|---|
| dst | Destination limb array |
| dstCount | Number of limbs in dst |
| src | Source limb array |
| srcBits | Width of the bit-field to copy |
| srcLSB | Least-significant bit index of the field in src |