[osg-users] [osg-submissions] Matrixf multiply Optimization

David Spilling david.spilling at gmail.com
Sun Jul 27 06:50:15 PDT 2008


MS uses _aligned_malloc (and _aligned_free), _declspec(align(16)).

I think gcc uses something like __attribute__((__aligned__(16))), but I'm
not sure whether that's OK for dynamic allocation.

Intel's MKL, and others, provide cross-platform aligned mallocs, so we might
be able to find something similar. Or just create a new Vec4f / Matrix4f
type with an overriden new operator.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080727/ec43dd52/attachment-0003.htm>


More information about the osg-users mailing list