Archived

This topic is now archived and is closed to further replies.

Impaler

Align function?

Recommended Posts

Impaler    122
Hi there, I want code an fast Align function, but my isnt fast here is the code snipped : inline C2D_uInt32 C2D_Align(C2D_uInt32 uiValue, C2D_uInt32 uiAlignment) { return (uiValue + (uiAlignment - (uiValue % uiAlignment)) ); } can anyone halp me to speed up this function ?? Thx Mfg Imp

Share this post


Link to post
Share on other sites