I think the compiler should optimize for the best assignment method,
whether it's memcpy-based or something else. I'd just do a standard
assignment.
Branan
On Wed, Aug 27, 2008 at 9:44 PM, Henri Häkkinen <hen...@gm...> wrote:
> Is there any benefits of using memcpy instead of regular assingments? That
> is,
>
> GLMmat4f a, b;
>
> a = b;
> vs.
> memcpy (&a, &b, sizeof (GLMmat4f));
>
> --
> Henri 'henux' Häkkinen
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Glsdk-devel mailing list
> Gls...@li...
> https://lists.sourceforge.net/lists/listinfo/glsdk-devel
>
>
|