zoecarver added a comment.

Yes, that sounds right. I can't think of any reason that the condition couldn't 
be `if (__r >  static_cast<floatT>(numeric_limits<intT>::max()))`. The 
information lost from shifting the value around is never more than the 
information lost from static_casting the value (as far as I have been able to 
reason and test).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66836/new/

https://reviews.llvm.org/D66836



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to