/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
The Weird Concept of Branchless Programming
(sanixdk.xyz)
170 points
judicious
| 1 comments |
28 Sep 25 16:40 UTC
|
HN request time: 0s
|
source
Show context
rao-v
◴[
28 Sep 25 18:55 UTC
]
No.
45406877
[source]
▶
>>45405750 (OP)
#
I’m amused to see a for loop in a function that is purportedly branchless
(not a critique)
replies(1):
>>45409050
#
1.
bluGill
◴[
28 Sep 25 23:40 UTC
]
No.
45409050
[source]
▶
>>45406877
#
Loops are very predictable in general so the branch isn't a problem. Of course this assumes your branch codition is standard - you can do weird things in the end condition that would food the cpu.
ID:
GO
↑