I love graphics code, because every I learn new convoluted ways to do the same thing. For example, today I found code containing "sqrt(x)^2"
-
-
Replying to @FioraAeterna
@FioraAeterna Perhaps an "optimized" branchless abs()? :-)1 reply 0 retweets 0 likes -
Replying to @RichFelker
@FioraAeterna I've suggested p-norm with moderately high p as a fast vectorized branchless approximation to max(a1,a2,...,an).. & it worked!1 reply 0 retweets 2 likes -
Replying to @RichFelker
@RichFelker max already is branchless on any sane architecture!1 reply 0 retweets 1 like
Replying to @FioraAeterna
@FioraAeterna This was for GPU stuff, which I don't do myself, but the person who tried it found it useful. I may be misremembering details.
4:18 PM - 7 Aug 2015
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.