Home
Random
Log in
Settings
About David's Wiki
Disclaimers
David's Wiki
Search
Branchless Programming: Difference between revisions
Page
Discussion
← Older edit
Newer edit →
Branchless Programming
(view source)
Revision as of 23:34, 19 June 2022
1 byte removed
,
19 June 2022
→Multiplications
Revision as of 23:34, 19 June 2022
(
view source
)
David
(
talk
|
contribs
)
(
→Multiplications
)
← Older edit
Revision as of 23:34, 19 June 2022
(
view source
)
David
(
talk
|
contribs
)
(
→Multiplications
)
Newer edit →
Line 57:
Line 57:
y = 2 * (age > 10) - 1
y = 2 * (age > 10) - 1
x = x + 10 * y
x = x + 10 * y
//
or
#
or
y = age > 10
y = age > 10
x = x + 10 * y - 10 * (1-y)
x = x + 10 * y - 10 * (1-y)
David
Bureaucrats
,
Interface administrators
,
Administrators
5,336
edits