Nicolas Alvarez <nic### [at] gmail com> wrote:
> I know someone who got this to work via C++ operator overloading and other
> nasties:
> Vector3D a, b;
> a.xy = b.zx;
> It's equivalent to a.x=b.z; a.y=b.x; Any combination of xyz letters would
> work, probably even a.xxx=b.yzy;
All to save typing a few extra characters... :P
> IIRC it even used SSE inline assembly to do the assignments.
And probably hindering any possibility for the compiler to perform
optimizations resulting in even more efficient code...
--
- Warp
Post a reply to this message
|