mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Filters need to be C90-compatible for Android build
This commit is contained in:
parent
569de131a0
commit
34fc044bbf
@ -121,7 +121,7 @@ uint16_t pg_lbmask;
|
||||
{\
|
||||
e = (df(PE,PC)+df(PE,PG)+df(PI,H5)+df(PI,F4))+(df(PH,PF)<<2); \
|
||||
i = (df(PH,PD)+df(PH,I5)+df(PF,I4)+df(PF,PB))+(df(PE,PI)<<2); \
|
||||
if ((e<i) && ( !eq(PF,PB) && !eq(PH,PD) || eq(PE,PI) && (!eq(PF,I4) && !eq(PH,I5)) || eq(PE,PG) || eq(PE,PC)) )\
|
||||
if ((e<i) && ((!eq(PF,PB) && !eq(PH,PD)) || (eq(PE,PI) && (!eq(PF,I4) && !eq(PH,I5))) || eq(PE,PG) || eq(PE,PC)) )\
|
||||
{\
|
||||
ke=df(PF,PG); ki=df(PH,PC); \
|
||||
ex2 = (PE!=PC && PB!=PC); ex3 = (PE!=PG && PD!=PG); px = (df(PE,PF) <= df(PE,PH)) ? PF : PH; \
|
||||
|
@ -198,14 +198,15 @@ static void twoxsai_generic_xrgb8888(unsigned width, unsigned height,
|
||||
int first, int last, uint32_t *src,
|
||||
unsigned src_stride, uint32_t *dst, unsigned dst_stride)
|
||||
{
|
||||
const unsigned nextline = (last) ? 0 : src_stride;
|
||||
unsigned nextline, finish;
|
||||
nextline = (last) ? 0 : src_stride;
|
||||
|
||||
for (; height; height--)
|
||||
{
|
||||
uint32_t *in = (uint32_t*)src;
|
||||
uint32_t *out = (uint32_t*)dst;
|
||||
|
||||
for (unsigned finish = width; finish; finish -= 1)
|
||||
for (finish = width; finish; finish -= 1)
|
||||
{
|
||||
twoxsai_declare_variables(uint32_t, in, nextline);
|
||||
|
||||
@ -227,14 +228,15 @@ static void twoxsai_generic_rgb565(unsigned width, unsigned height,
|
||||
int first, int last, uint16_t *src,
|
||||
unsigned src_stride, uint16_t *dst, unsigned dst_stride)
|
||||
{
|
||||
const unsigned nextline = (last) ? 0 : src_stride;
|
||||
unsigned nextline, finish;
|
||||
nextline = (last) ? 0 : src_stride;
|
||||
|
||||
for (; height; height--)
|
||||
{
|
||||
uint16_t *in = (uint16_t*)src;
|
||||
uint16_t *out = (uint16_t*)dst;
|
||||
|
||||
for (unsigned finish = width; finish; finish -= 1)
|
||||
for (finish = width; finish; finish -= 1)
|
||||
{
|
||||
twoxsai_declare_variables(uint16_t, in, nextline);
|
||||
|
||||
|
@ -172,14 +172,15 @@ static void supertwoxsai_generic_xrgb8888(unsigned width, unsigned height,
|
||||
int first, int last, uint32_t *src,
|
||||
unsigned src_stride, uint32_t *dst, unsigned dst_stride)
|
||||
{
|
||||
const unsigned nextline = (last) ? 0 : src_stride;
|
||||
unsigned nextline, finish;
|
||||
nextline = (last) ? 0 : src_stride;
|
||||
|
||||
for (; height; height--)
|
||||
{
|
||||
uint32_t *in = (uint32_t*)src;
|
||||
uint32_t *out = (uint32_t*)dst;
|
||||
|
||||
for (unsigned finish = width; finish; finish -= 1)
|
||||
for (finish = width; finish; finish -= 1)
|
||||
{
|
||||
supertwoxsai_declare_variables(uint32_t, in, nextline);
|
||||
|
||||
@ -201,14 +202,15 @@ static void supertwoxsai_generic_rgb565(unsigned width, unsigned height,
|
||||
int first, int last, uint16_t *src,
|
||||
unsigned src_stride, uint16_t *dst, unsigned dst_stride)
|
||||
{
|
||||
const unsigned nextline = (last) ? 0 : src_stride;
|
||||
unsigned nextline, finish;
|
||||
nextline = (last) ? 0 : src_stride;
|
||||
|
||||
for (; height; height--)
|
||||
{
|
||||
uint16_t *in = (uint16_t*)src;
|
||||
uint16_t *out = (uint16_t*)dst;
|
||||
|
||||
for (unsigned finish = width; finish; finish -= 1)
|
||||
for (finish = width; finish; finish -= 1)
|
||||
{
|
||||
supertwoxsai_declare_variables(uint16_t, in, nextline);
|
||||
|
||||
|
@ -189,14 +189,15 @@ static void supereagle_generic_xrgb8888(unsigned width, unsigned height,
|
||||
int first, int last, uint32_t *src,
|
||||
unsigned src_stride, uint32_t *dst, unsigned dst_stride)
|
||||
{
|
||||
const unsigned nextline = (last) ? 0 : src_stride;
|
||||
unsigned finish, nextline;
|
||||
nextline = (last) ? 0 : src_stride;
|
||||
|
||||
for (; height; height--)
|
||||
{
|
||||
uint32_t *in = (uint32_t*)src;
|
||||
uint32_t *out = (uint32_t*)dst;
|
||||
|
||||
for (unsigned finish = width; finish; finish -= 1)
|
||||
for (finish = width; finish; finish -= 1)
|
||||
{
|
||||
supereagle_declare_variables(uint32_t, in, nextline);
|
||||
|
||||
@ -212,14 +213,15 @@ static void supereagle_generic_rgb565(unsigned width, unsigned height,
|
||||
int first, int last, uint16_t *src,
|
||||
unsigned src_stride, uint16_t *dst, unsigned dst_stride)
|
||||
{
|
||||
const unsigned nextline = (last) ? 0 : src_stride;
|
||||
unsigned nextline, finish;
|
||||
nextline = (last) ? 0 : src_stride;
|
||||
|
||||
for (; height; height--)
|
||||
{
|
||||
uint16_t *in = (uint16_t*)src;
|
||||
uint16_t *out = (uint16_t*)dst;
|
||||
|
||||
for (unsigned finish = width; finish; finish -= 1)
|
||||
for (finish = width; finish; finish -= 1)
|
||||
{
|
||||
supereagle_declare_variables(uint16_t, in, nextline);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user