Sony vector math library with GCC/Linux

mgottschlag
Posts: 1
Joined: Tue May 18, 2010 1:54 pm

Sony vector math library with GCC/Linux

Post by mgottschlag »

The attached** patch makes the vector math library mostly* build with gcc.

Basically it replaces all occurences of __declspec(align(16)) with macros that work on both GCC and MSVC (probably, did not test anything but compiling on GCC/amd64 yet -.-). Other compilers have to be added into the alignment.h created by that patch.

Anyone can review the patch and maybe push it into the main repo?

*This does not take care of __forceinline which GCC does not know, however that can also be solved before including the library, e.g.:

Code: Select all

#ifdef __GNUC__
#define __forceinline __attribute__((always_inline))
#endif

#include "vectormath/cpp/vectormath_aos.h"
** "The extension patch is not allowed." - "The extension txt is not allowed." - why are simple text files disabled here? Added the patch as .zip, for a quick preview use http://pastebin.com/wTVSuZPy


EDIT: Argh. Just seeing now that there already is a patch not a page away in the forum. Just ignore this.
You do not have the required permissions to view the files attached to this post.