mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
30e437f9e3
variables, writeable strings and dangerously shadowed variables. index(), gamma(), exp() and y0() are POSIX functions and using those names can cause namespace confusion. A number of C files were missing the final newline required by ANSI C and some versions of GCC are pedantic enough to complain about this. These changes simply the scons build, allowing us to get rid of filterWarnings which is simply more trouble than it's worth. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5574 8ced0084-cf51-0410-be5f-012b33b47a6e
75 lines
973 B
C++
75 lines
973 B
C++
#include "asm_tables.h"
|
|
#include "Defines.h"
|
|
|
|
void add(u32 *a, u32 *b, u32 *c, u32 *d)
|
|
{
|
|
asm(
|
|
"add %0,%1,%2"
|
|
: "=r"(*a)
|
|
: "r"(*b), "r"(*c)
|
|
);
|
|
}
|
|
void addRC(u32 *a, u32 *b, u32 *c, u32 *d)
|
|
{
|
|
asm(
|
|
"add. %0,%1,%2"
|
|
: "=r"(*a)
|
|
: "r"(*b), "r"(*c)
|
|
: "cc"
|
|
);
|
|
}
|
|
|
|
void subfc(u32 *a, u32 *b, u32 *c, u32 *d)
|
|
{
|
|
asm(
|
|
"subfc %0,%1,%2"
|
|
: "=r"(*a)
|
|
: "r"(*b), "r"(*c)
|
|
);
|
|
}
|
|
void subfcRC(u32 *a, u32 *b, u32 *c, u32 *d)
|
|
{
|
|
asm(
|
|
"subfc. %0,%1,%2"
|
|
: "=r"(*a)
|
|
: "r"(*b), "r"(*c)
|
|
: "cc"
|
|
);
|
|
}
|
|
|
|
void divw(u32 *a, u32 *b, u32 *c, u32 *d)
|
|
{
|
|
asm(
|
|
"divw %0,%1,%2"
|
|
: "=r"(*a)
|
|
: "r"(*b), "r"(*c)
|
|
);
|
|
}
|
|
void divwRC(u32 *a, u32 *b, u32 *c, u32 *d)
|
|
{
|
|
asm(
|
|
"divw. %0,%1,%2"
|
|
: "=r"(*a)
|
|
: "r"(*b), "r"(*c)
|
|
: "cc"
|
|
);
|
|
}
|
|
|
|
void divwo(u32 *a, u32 *b, u32 *c, u32 *d)
|
|
{
|
|
asm(
|
|
"divwo %0,%1,%2"
|
|
: "=r"(*a)
|
|
: "r"(*b), "r"(*c)
|
|
);
|
|
}
|
|
void divwoRC(u32 *a, u32 *b, u32 *c, u32 *d)
|
|
{
|
|
asm(
|
|
"divwo. %0,%1,%2"
|
|
: "=r"(*a)
|
|
: "r"(*b), "r"(*c)
|
|
: "cc"
|
|
);
|
|
}
|