WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 45406503

(no title)

abyesilyurt | 5 months ago

Thresholding requires branching no?

discuss

order

WJW|5 months ago

No, you can do that without branching. See https://en.algorithmica.org/hpc/pipelining/branchless/#predi... for example.

bqmjjx0kac|5 months ago

As demonstrated in the article, you can compute clamp(x, min, max) with straight-line code.

Legend2440|5 months ago

No, it’s just a math operation and can be applied to any amount of data in parallel.
powered by hn/api // news.ycombinator.com