[sldev] OpenJPEG, 25% faster

Callum Lerwick seg at haxxed.com
Sat Aug 11 01:56:53 PDT 2007


On Sat, 2007-08-11 at 13:33 +1000, Paul TBBle Hampson wrote:
> gcc needs -std=c99 in the cflags to recognise the 'restrict' keyword.

Handled in my RPM spec. Should probably get put in the makefile. MSVC 6
doesn't understand restrict either so I think upstream is putting in a
macro to null it out in the case of MSVC. Do any versions of MSVC do
restrict?

> mm_alloc.h and _mm_malloc are x86-specific. A test for __MMX__ would
> prolly catch it on gcc, and I presume it's always available on MSVC,
> since it's not actually using any of the MMX stuff (despite the name)

d'oh. I was hoping to get away without any special cases. So much for
that idea.

> On non-x86, posix_memalign looks like the only portable way to go, and
> it needs #define _XOPEN_SOURCE 600 or #define GNU_SOURCE.
> 
> And of course its signature doesn't match malloc, so you can't just
> #define around it.

There's a reason autotools exists. I think I saw cmake in there
though...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070811/d19f9328/attachment.pgp


More information about the SLDev mailing list