mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-03 16:03:21 +00:00
[APFloat] scalbn - pass DoubleAPFloat arg as const-ref. NFCI.
Avoid unnecessary copy and fix clang-tidy warning.
This commit is contained in:
parent
70ea15b889
commit
5169627c14
@ -688,7 +688,7 @@ public:
|
||||
bool getExactInverse(APFloat *inv) const;
|
||||
|
||||
friend int ilogb(const DoubleAPFloat &Arg);
|
||||
friend DoubleAPFloat scalbn(DoubleAPFloat X, int Exp, roundingMode);
|
||||
friend DoubleAPFloat scalbn(const DoubleAPFloat &X, int Exp, roundingMode);
|
||||
friend DoubleAPFloat frexp(const DoubleAPFloat &X, int &Exp, roundingMode);
|
||||
friend hash_code hash_value(const DoubleAPFloat &Arg);
|
||||
};
|
||||
|
@ -4761,7 +4761,8 @@ bool DoubleAPFloat::getExactInverse(APFloat *inv) const {
|
||||
return Ret;
|
||||
}
|
||||
|
||||
DoubleAPFloat scalbn(DoubleAPFloat Arg, int Exp, APFloat::roundingMode RM) {
|
||||
DoubleAPFloat scalbn(const DoubleAPFloat &Arg, int Exp,
|
||||
APFloat::roundingMode RM) {
|
||||
assert(Arg.Semantics == &semPPCDoubleDouble && "Unexpected Semantics");
|
||||
return DoubleAPFloat(semPPCDoubleDouble, scalbn(Arg.Floats[0], Exp, RM),
|
||||
scalbn(Arg.Floats[1], Exp, RM));
|
||||
|
Loading…
x
Reference in New Issue
Block a user