[osg-users] Matrixf multiply Optimization
gordon at gordon-tomlinson.com
Sun Jul 27 06:58:44 PDT 2008
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
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osg-users