[osg-users] Matrixf multiply Optimization

Gordon Tomlinson gordon at gordon-tomlinson.com
Sun Jul 27 06:58:44 PDT 2008


Hi David

 

I know we use it in our app with dynamic allocations ( thru new ) this is on
Windoze with VS, not doing it with unions though

I used it for the first time when working with a Lidar reader recently

 

 

__________________________________________________________
Gordon Tomlinson 

Email   : gordon at GordonTomlinson.com
YIM/AIM : gordon3dBrit
MSN IM  : gordon3dBrit at 3dscenegraph.com
Website : www.vis-sim.com www.gordontomlinson.com 

__________________________________________________________

 

From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of David
Spilling
Sent: Sunday, July 27, 2008 9:50 AM
To: philipjt at ntlworld.com; OpenSceneGraph Users
Subject: Re: [osg-users] [osg-submissions] Matrixf multiply Optimization

 

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/3a21c12c/attachment-0003.htm>


More information about the osg-users mailing list