Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
abyesilyurt
· 1y ago · 0 comments
Thresholding requires branching no?
Comments
[–]
WJW
1y ago
No, you can do that without branching. See
https://en.algorithmica.org/hpc/pipelining/branchless/#predi...
for example.
[–]
bqmjjx0kac
1y ago
As demonstrated in the article, you can compute clamp(x, min, max) with straight-line code.
[–]
Legend2440
1y ago
No, it’s just a math operation and can be applied to any amount of data in parallel.