[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Chris wrote:
On Sunday 20 November 2005 08:51 pm, aj wrote:
then a bool IsAlignedPtr(); may be needed, before any SSE code.
SSE instructions can still be used inside a
if ( IsAlignedPtr() )
SSE code
else
i386 code
And all that branching could probably negate any speed benefits SSE would
give.
you only need one branch per line.
And how do you propose to write SSE code in C?
intrinsics, i use them succesfully on msvc, and mingw-gcc.
AFAIK, assembly is being
dropped, since it's restrictive, compiler-specific, and in most cases not as
good as compiler-generated optimized code.
That is true of the current allegro asm.
However SSE intrinsics still can out-perform compiler generated SSE code.
SSE intrinics that i use on mingw-gcc and msvc, so they are not
compiler specific.
for each line.
SSE code can be used, even without using the -mSSE
AFAIK -mSSE tells the compiler to generate its own SSE were
appropriate, thats not going to prevent specific use of SSE.
If its anything like -mmmx, it'll cause the compiler to generate SSE code on
its own, and enable a C interface to using SSE.
could the use of pragmas isolate SSE code within each compilation unit?