Course description

This short course expands the motivations behind bit-shifting operations in the context of retro game programming. In just 1 hour, you'll understand the math behind shifting bits and learn when and why to use them in your code.

bit shifting tutorial
This short course is a good option for those who want to try my teaching style before enrolling in other courses.

About the instructor

gustavo pezzi

Gustavo Pezzi is a university lecturer in London, UK. He has won multiple education awards as a teacher and is also the founder of

Gustavo teaches fundamentals of computer science and mathematics; his academic path includes institutions such as Pittsburg State University, City University of London, and University of Oxford.

teaching certification
higher education academy
pgclt teaching certification
bpp university award

Course content

1.5 hours total length 5 Chapters Last updated July 2021
  • Motivations & Learning Outcomes
  • Numbers and Positional Notation
  • Multiplication in Base-10
  • Division in Base-10
  • Multiplication in Base-2
  • Division in Base-2
  • Processor Instructions
  • Code Example
  • Wolfenstein 3D Code
  • Quiz: Coding and Bit-shifting
  • Arithmetic Shift vs. Logical Shift
  • Relevance and Modern Applications of Bit-shifting
  • Conclusion and Moving Forward

What students are saying

5 star
4 star
3 star
2 star
1 star
Filipe Araujo
Senior Technical Artist
"Excellent content! First course I've watched here on Pikuma, Gustavo explains things visually and in a very methodical way."
25 Jan 2023
"Great Course! Great explanation of what can be a tricky thing to get used to."
25 Sep 2022
Hyung Jin Kim
"PIKUMA is the best!"
31 Aug 2022
Jeffrey Shaffer
Associate Professor at Shizuoka University
"Very Clear and Easy to Understand. Thanks, Gustavo! Your explanations and examples are always clear and easy to understand. I heartily recommend any (or ALL) of Gustavo's courses!"
31 Aug 2022
Josue Boisvert
"Demystifies binaries and bit shifting operations. I've been coding for years but each time I needed to use bit shifting I had to find some reference online or just go through trials and errors until I got the desired results. Thanks to this short course, however I'm way more confident that I can do binary calculations and bit shifting operations in my head and as a bonus I see more clearly how it can benefit me in some use cases that I didn't consider before!"
29 Aug 2022

Other similar courses

3D Computer Graphics Programming

35 hours
  • Create a 3D software renderer from scratch using the C programming language.

C++ 2D Game Engine Development

30 hours
  • Learn to make a simple 2D game engine using modern C++, SDL, ECS, and Lua.

Game Physics Engine Programming

35 hours
  • Learn how to create a 2D rigid-body game physics engine from scratch with C++.