Skip to main content
gamedev.net
🔒 Locked

using |=

Started by Nickels Oct 15, 2003 at 9:07 PM 0 replies 350+ views
Original Post
Nickels
Nickels
what does that mean?
Climb a mountain, every dawn.
Shannon Barber
Shannon Barber
bit or and set equal

int x = 0;

x |= 1<<5;
this is the same as
x = x | (1<<5);

bit 5 of x is now set to 1, the rest of the bits are unchanged.
The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.