Opened 14 years ago

Closed 13 years ago

Last modified 9 months ago

#7452 closed enhancement (outdated)

Make Altivec code working on non-OSX systems

Reported by: SF/capehill Owned by: fingolfin
Priority: normal Component: Graphics: Scalers
Keywords: Cc:
Game:

Description

I tried to compile Altivec code in common/scaler/hq3x.h on GCC 3.4.3 (Cygwin, host=ppc-amigaos) but it gives me errors.

For example, this:

#ifdef USE_ALTIVEC
// The YUV threshold.
static const vector unsigned char vThreshold = (vector unsigned char)((vector unsigned int)0x00300706);

Gives an error of "different sized vectors" or something similar.

Does this code compile for MacOS?

Ticket imported from: #1328365. Ticket imported from: feature-requests/268.

Change History (5)

comment:1 Changed 14 years ago by fingolfin

Component: --Unset--
Summary: Problems when trying to compile Altivec codeMake Altivec code working on non-OSX systems

comment:2 Changed 14 years ago by fingolfin

Yes, it works perfectly fine under Mac OS X. I don't think that that GCC
3.x on non-apple systems has a fully compatible Altivec extension syntax.
You may have somewhat more luck using GCC 4.x

Moving this to Feature Request tracker.

comment:3 Changed 13 years ago by fingolfin

The altivec code has been removed, so this item is now kind obsolete ;-).

comment:4 Changed 13 years ago by fingolfin

Owner: set to fingolfin
Resolution: outdated
Status: newclosed

comment:5 Changed 9 months ago by digitall

Component: Graphics: Scalers
Note: See TracTickets for help on using tickets.