Martin Waitz wrote: > On Thu, Oct 12, 2006 at 03:20:09PM -0700, A Large Angry SCM wrote: >>> + if (it) >>> + return it * width / (it + width) + 1; >>> + else >>> + return 0; >> No conditional needed: >> >> return it * width / (it + width - 1) > > But then it would start scaling much earlier > (for width 10: at 2 instead of 4). > This is not bad per se, but different... > OK: return (it * width + (it + width)/2)) / (it + width - 1) Now it's back at 4. ;-) - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Fri Oct 13 08:49:05 2006
This archive was generated by hypermail 2.1.8 : 2006-10-13 08:50:29 EST