• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 188
  • Last Modified:

How to Left Shift 24 bits

How can I left shift an integer 24 bits?
How can I left shift an integer 8 bits?
0
fury
Asked:
fury
1 Solution
 
msimanCommented:
for 24, multiple the number with 2^24=16777216
for 8 multiple it by 256=2^8

i.e. to shift by x bits, multiple by 2^x ok?

0
 
furyAuthor Commented:
I thought about this, just not sure..Thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now