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   : [EMAIL PROTECTED]
YIM/AIM : gordon3dBrit
MSN IM  : [EMAIL PROTECTED]
Website : www.vis-sim.com www.gordontomlinson.com 

__________________________________________________________

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Spilling
Sent: Sunday, July 27, 2008 9:50 AM
To: [EMAIL PROTECTED]; 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

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to