Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
C++ Branchless Abs v2
Miseryk
Mar 21st, 2023
624
0
Never
2
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.06 KB
| Source Code
|
0
0
raw
download
clone
embed
print
report
int
abs2
(
int
a
)
{
return
a
*
(
(
a
>=
0
)
*
2
-
1
)
;
}
Tags:
C++
Abs
branchless
Advertisement
Comments
f4t
3 years
#
text
0.02 KB |
0
0
view
report
reply
Huh, what are you making?
Miseryk
3 years
#
text
0.04 KB |
0
0
view
report
reply
Improving the execution speed (time)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Crypto admin access
33 min ago | 0.43 KB
+12,000$ in 2 days
CSS | 33 min ago | 0.72 KB
Free Crypto Method
CSS | 33 min ago | 0.72 KB
Documents
39 min ago | 0.43 KB
systemd-socket-test (AI + Human)
Python | 7 hours ago | 9.34 KB
Puts to sleep and forget
14 hours ago | 0.85 KB
Silk
1 day ago | 3.74 KB
fleet_agent
1 day ago | 5.04 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!