I have an I2C device that gives me 24 Bit data, that I save in uint32_t by masking the 2 MSBs. Now with this data, I want to do two operations.
Subtract a number to "center" the working range of the device. Multiply it to find some other quantity.The current implementation in code is like
uint32_t quantity1; // I have my value in this variable quantity1 -= 0x100...