Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 20th, 2018
68
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
#[inline]
fn mbit(x: usize) -> isize { if x == 0 { -1 } else { 0 } }
// "Better"
pub fn main() {
for i in 0..16 {
println!("{:?}", (mbit(i&8), mbit(i&4), mbit(i&2), mbit(i&1)));
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 5.34 KB
Untitled
2 hours ago | 5.23 KB
Untitled
3 hours ago | 5.74 KB
Untitled
4 hours ago | 11.21 KB
Untitled
5 hours ago | 4.79 KB
OoT rando seed 4/16-2
6 hours ago | 67.86 KB
Untitled
6 hours ago | 6.93 KB
Untitled
7 hours ago | 6.61 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!