[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

Chris Lattner clattner at apple.com
Wed Feb 28 22:15:08 PST 2007


> +  // Use a fast table for some small values. This also gets rid of  
> some
> +  // rounding errors in libc sqrt for small values.
> +  if (magnitude <= 5) {

Please use a real table, not a switch, for this.  It will be smaller  
(codesize) and faster.

-Chris






More information about the llvm-commits mailing list