MCPcopy Create free account
hub / github.com/MikePopoloski/slang / shl

Method shl

source/numeric/SVInt.cpp:512–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512SVInt SVInt::shl(const SVInt& rhs) const {
513 // if the shift amount is unknown, result is all X's
514 if (rhs.hasUnknown())
515 return createFillX(bitWidth, signFlag);
516
517 return shl(rhs.unsignedAmount());
518}
519
520SVInt SVInt::shl(bitwidth_t amount) const {
521 // handle trivial cases

Callers 5

CaseDecisionDagMethod · 0.80
evalMethod · 0.80
fromIEEE754Function · 0.80
powMethod · 0.80
NumericTests.cppFile · 0.80

Calls 8

SVIntFunction · 0.85
isSingleWordFunction · 0.85
getNumWordsFunction · 0.85
shlFarFunction · 0.85
hasUnknownMethod · 0.80
unsignedAmountMethod · 0.80
clearUnusedBitsMethod · 0.80
checkUnknownMethod · 0.80

Tested by

no test coverage detected