I'm using a library passes me a pointer to an array of int32_T. I need to do some math on these numbers, but the data is actually in Q23.8 format.
I created a class overloading the basic math operators, but I'm stuck with how to cast the int32_t array pointer to my new class -- the datatypes are different sizes. Is there a way to do force my new class to match the size of int32_t, or is there another way to get this done?
Note: I want to avoid copying each item of this large array, as I'm developing for a resource constrained system.