indiantarget / quimeraengine

0 stars 0 forks source link

Add method to calculate the alignment adjustment #634

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This method could be added as a static method in QAlignment.

static 
u-int QAlignment::CalculateAdjustment(const void*, QAlignment);

It must return zero if the memory address is already aligned, or the amount of 
address numbers to move the input address up in order to get an aligned memory 
address.

Original issue reported on code.google.com by Lince3D@gmail.com on 15 Nov 2014 at 9:48

GoogleCodeExporter commented 9 years ago
Remember to replace the code where this operation is already being used with a 
call to this method.

Original comment by Lince3D@gmail.com on 16 Nov 2014 at 12:34

GoogleCodeExporter commented 9 years ago

Original comment by Lince3D@gmail.com on 9 Feb 2015 at 6:30