Re: problem using ctypes with MMX intrinsics

2008-10-15 Thread dcharno
Robert Kern wrote: Well, stack alignment would be a problem with how the shared library gets compiled, nothing to do with ctypes (I think). However, if you are The shared library is built with '-m32 -msse2' and works fine from a C/C++ test harness, so I think its compiled okay. > passing in

problem using ctypes with MMX intrinsics

2008-10-14 Thread dcharno
Is it possible to use ctypes with a shared library which uses MMX/SSE intrinsics? I can load the library and access functions inside it, but I getting a seg fault when I hit one of the intrinsics. I'm wondering if there might be some sort of stack alignment problem. I am using gcc version 4.