MCPcopy Create free account
hub / github.com/ablab/spades / operator*

Method operator*

ext/src/llvm/APInt.cpp:230–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230APInt APInt::operator*(const APInt& RHS) const {
231 assert(BitWidth == RHS.BitWidth && "Bit widths must be the same");
232 if (isSingleWord())
233 return APInt(BitWidth, U.VAL * RHS.U.VAL);
234
235 APInt Result(getMemory(getNumWords()), getBitWidth());
236
237 tcMultiply(Result.U.pVal, U.pVal, RHS.U.pVal, getNumWords());
238
239 Result.clearUnusedBits();
240 return Result;
241}
242
243void APInt::AndAssignSlowCase(const APInt& RHS) {
244 tcAnd(U.pVal, RHS.U.pVal, getNumWords());

Callers

nothing calls this directly

Calls 6

assertClass · 0.85
isSingleWordFunction · 0.85
getMemoryFunction · 0.85
getNumWordsFunction · 0.85
getBitWidthFunction · 0.85
APIntFunction · 0.50

Tested by

no test coverage detected