GTP/PTC Experience
My experience trying to make money online
Saturday, December 17, 2011
C/C++ Shift Bit Ops
Left circular bit shift:
=======================
void circShiftLeft(unsigned& V) {
unsigned int leftBit = (unsigned)!!(1 << sizeof(V)*8 -1) & V);
V = V << 1;
V = V | leftBit;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
►
2020
(1)
►
June
(1)
▼
2011
(1)
▼
December
(1)
C/C++ Shift Bit Ops
►
2010
(1)
►
January
(1)
About Me
Dukie
View my complete profile
No comments:
Post a Comment