Bitshifting Operations

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
Yuvesh Sooknah
Yuvesh Sooknah
Software Engineer
"I wish I discovered these courses 20 years back !!! Clarity is the thing with Gustavo's teaching methods. It is the most worthy hour spent (only once in life) on understanding Bitshifting operation and to be remembered throughout a lifetime.. without the need to refresh on the topic again in the future.. Highly recommended courses!!"
19 Jul 2022
Nathan Scott
"Recommended. Very helpful especially with the code examples! Thanks!"
22 May 2022
Jean-Jacques Strydom
Jean-Jacques Strydom
"Great course. Now I finally understand how bitshifting works!"
03 May 2022
Victor Brusca
"I found this course to be clear, concise, and informative."
11 Apr 2022
Mattia Di Meglio
"Very well done! Wanted to check out the teacher style, so I enrolled. I was familiar with the argument, but was still pleasantly surprised by the course: Absolutely well done and beautifullly explained!"
08 Apr 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++.