This course includes

(updated Jan 2021)

  • 1 hour of on-demand video

  • Downloadable resources and exercises

  • Lifetime access

  • Access on mobile and desktop

Is this course for you?

This short course expands the ideas behind Bitshift operations. In 1 hour you'll understand the math behind shifting bits right and left, and learn when and how to use them in your code. Enrol now and understand the mechanics of bitshifting and how it can help you as a programmer.
Free enrollment
Is this course for you?
Watch Intro Video

Motivations & Learning Outcomes

  • Activities and Discussions

    Join our community and get the most of our discussion boards

Course Content

  • 1
    Introduction and Motivations
    • Introduction and Learning Outcomes
  • 2
    Base System Multiplication and Division
    • Numbers and Positional Notation
    • Multiplication and Division in Base 10
    • Multiplication and Division in Base 2
    • Quiz: Positional Notation & Counting
  • 3
    Bitshift in Context
    • Processor Instructions
    • Code Example
    • Wolfenstein 3D Source Code (Download)
    • Quiz: Coding & Bitshift Operators
    • Arithmetic and Logical Shifts
  • 4
    Conclusion
    • Relevance and Applications of Bitshifting
  • 5
    Moving Forward
    • Copyright & Content Distribution
    • Similar Courses

Instructor

  • Gustavo Pezzi

    Senior Lecturer

    Gustavo Pezzi

    Gustavo teaches computer science and mathematics at BPP University, London. He studies how teaching game programming can help enhance awareness and understanding of basic mathematics and physics. He is also a professional software engineer with more than 10 years of experience, with an industry background in 3D systems, games, systems, databases, and data analysis. His academic path includes institutions such as Pittsburg State University, City University of London, and University of Oxford.

Reviews

See what students are saying

  • A Quick, Enlightening Lesson

    Ian Jabour

    This was a fantastic resource for learning about bitshift operations. Definitely worth the time!

    This was a fantastic resource for learning about bitshift operations. Definitely worth the time!

    Read Less
  • Fantastic course

    Roger McNally

    Fantastic course, illustrates the concept clearly and concisely. Would recommend.

    Fantastic course, illustrates the concept clearly and concisely. Would recommend.

    Read Less
  • The best instructor

    Codes Otaku

    The best instructor I've ever seen.

    The best instructor I've ever seen.

    Read Less
  • Extremely detailed and informative

    Nicholas Helish

    This is a fantastic course explaining bitshift operations and definitely cleared up my misunderstanding of them thank you!

    This is a fantastic course explaining bitshift operations and definitely cleared up my misunderstanding of them thank you!

    Read Less
  • Excellent

    Ajay Khanna

    It says a lot about GP's teaching style that although I knew all this stuff already I *still* enjoyed this course, kind of like hanging out with a cool nerd ...

    Read More

    It says a lot about GP's teaching style that although I knew all this stuff already I *still* enjoyed this course, kind of like hanging out with a cool nerd friend and talking about how elegant bit operations are. Would love to see a follow-up course that goes into more detail, maybe "Hacker's Delight" style bit hacks.

    Read Less
  • Awesome!

    kory rice

    Thank you! This course was fantastic! The only feedback I could give is maybe mention that 2^0 = 1. Someone that doesn't know math that well might get confus...

    Read More

    Thank you! This course was fantastic! The only feedback I could give is maybe mention that 2^0 = 1. Someone that doesn't know math that well might get confused on why if the right most bit = 1 the value would be 1 and not 0, which would throw off their total number when adding up each bit value. One of those things that many would just know automatically, but if someone without that knowledge was trying to follow along it could confuse them. Thank you again for this course, loved it!

    Read Less