search for: nextsquar

Displaying 6 results from an estimated 6 matches for "nextsquar".

Did you mean: nextsquare
2011 Dec 01
3
[LLVMdev] anchoring explicit template instantiations
...or:" - << Handler->getValueExpectedFlag() << "\n"; - llvm_unreachable(0); + llvm_unreachable("Bad ValueMask flag!"); } and --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -1440,16 +1440,14 @@ APInt APInt::sqrt() const { APInt nextSquare((x_old + 1) * (x_old +1)); if (this->ult(square)) return x_old; - else if (this->ule(nextSquare)) { + if (this->ule(nextSquare)) { APInt midpoint((nextSquare - square).udiv(two)); APInt offset(*this - square); if (offset.ult(midpoint)) return x_old; - el...
2011 Dec 01
0
[LLVMdev] anchoring explicit template instantiations
...edFlag() << "\n"; > - llvm_unreachable(0); > + llvm_unreachable("Bad ValueMask flag!"); This patch would lose the expected flag value, which is unfortunate. > +++ b/lib/Support/APInt.cpp > @@ -1440,16 +1440,14 @@ APInt APInt::sqrt() const { > APInt nextSquare((x_old + 1) * (x_old +1)); > if (this->ult(square)) > return x_old; > + if (this->ule(nextSquare)) { > APInt midpoint((nextSquare - square).udiv(two)); > APInt offset(*this - square); > if (offset.ult(midpoint)) > return x_old; > + } > +...
2011 Dec 01
0
[LLVMdev] anchoring explicit template instantiations
On Nov 29, 2011, at 12:26 AM, David Blaikie wrote: > For a bit of an experiment I've been trying to compile LLVM & Clang > with -Weverything (disabling any errors that seem like more noise/less > interesting). One warning I've recently hit a few instances of is > -Wweak-vtable which is, in fact, an explicitly documented LLVM coding > standard (
2011 Nov 29
2
[LLVMdev] anchoring explicit template instantiations
For a bit of an experiment I've been trying to compile LLVM & Clang with -Weverything (disabling any errors that seem like more noise/less interesting). One warning I've recently hit a few instances of is -Wweak-vtable which is, in fact, an explicitly documented LLVM coding standard ( http://llvm.org/docs/CodingStandards.html#ll_virtual_anch ). Some instances of this have been easy to
2011 Dec 01
2
[LLVMdev] anchoring explicit template instantiations
...at probably shouldn't be one of the enumeration values anyway, should it? (looks like it should just be a hidden constant somewhere in the implementation details of llvm::Option)) >> +++ b/lib/Support/APInt.cpp >> @@ -1440,16 +1440,14 @@ APInt APInt::sqrt() const { >>   APInt nextSquare((x_old + 1) * (x_old +1)); >>   if (this->ult(square)) >>     return x_old; >> +  if (this->ule(nextSquare)) { >>     APInt midpoint((nextSquare - square).udiv(two)); >>     APInt offset(*this - square); >>     if (offset.ult(midpoint)) >>       retu...
2011 Dec 11
5
[LLVMdev] anchoring explicit template instantiations
...>> -    llvm_unreachable(0); >> +    llvm_unreachable("Bad ValueMask flag!"); > > This patch would lose the expected flag value, which is unfortunate. > >> +++ b/lib/Support/APInt.cpp >> @@ -1440,16 +1440,14 @@ APInt APInt::sqrt() const { >>   APInt nextSquare((x_old + 1) * (x_old +1)); >>   if (this->ult(square)) >>     return x_old; >> +  if (this->ule(nextSquare)) { >>     APInt midpoint((nextSquare - square).udiv(two)); >>     APInt offset(*this - square); >>     if (offset.ult(midpoint)) >>       retu...