Daily Archives: September 22, 2013

Multiplication and addition through binary operations

In order to get more comfortable using bitwise operators such as & | ^ ~ in the course Advanced C++ 2 for games, we received our first sub-assignment. Performing multiplication and addition through binary operations only.
For addition we used the follow algorithm:

We have two integers, 39(0010 0111) and 23(0001 0111).
1. Perform XOR on them and store the results in a new integer we call sum. This will compare the bits of the integer and return a value were the […]

/ Comments Off on Multiplication and addition through binary operations
Program: Programming

Multiplication and addition through binary operations

In order to get more comfortable using bitwise operators such as & | ^ ~ in the course Advanced C++ 2 for games, we received our first sub-assignment. Performing multiplication and addition through binary operations only.
For addition we used the follow algorithm:

We have two integers, 39(0010 0111) and 23(0001 0111).
1. Perform XOR on them and store the results in a new integer we call sum. This will compare the bits of the integer and return a value were the […]

/ Comments Off on Multiplication and addition through binary operations
Program: Programming

Analysis report, Gloom and other things in mind

I’ve been trying to write a section of my analysis report today. It took me all day to get down just a few words. I can’t believe how rusty I am at this writing thing.So first things first: I started up by writing down a few topics I need to have in the …

/ Comments Off on Analysis report, Gloom and other things in mind
Program: Graphics

Analysis report, Gloom and other things in mind

I’ve been trying to write a section of my analysis report today. It took me all day to get down just a few words. I can’t believe how rusty I am at this writing thing.So first things first: I started up by writing down a few topics I need to have in the …

/ Comments Off on Analysis report, Gloom and other things in mind
Program: Graphics