static inline int cris_swap(const int mode, int x)

{

	switch (mode)

	{

		case N: asm ("swapn\t%0\n" : "+r" (x) : "0" (x)); break;

		case W: asm ("swapw\t%0\n" : "+r" (x) : "0" (x)); break;

		case B: asm ("swapb\t%0\n" : "+r" (x) : "0" (x)); break;

		case R: asm ("swapr\t%0\n" : "+r" (x) : "0" (x)); break;

		case B|R: asm ("swapbr\t%0\n" : "+r" (x) : "0" (x)); break;

		case W|R: asm ("swapwr\t%0\n" : "+r" (x) : "0" (x)); break;

		case W|B: asm ("swapwb\t%0\n" : "+r" (x) : "0" (x)); break;

		case W|B|R: asm ("swapwbr\t%0\n" : "+r" (x) : "0" (x)); break;

		case N|R: asm ("swapnr\t%0\n" : "+r" (x) : "0" (x)); break;

		case N|B: asm ("swapnb\t%0\n" : "+r" (x) : "0" (x)); break;

		case N|B|R: asm ("swapnbr\t%0\n" : "+r" (x) : "0" (x)); break;

		case N|W: asm ("swapnw\t%0\n" : "+r" (x) : "0" (x)); break;

		default:

			err();

			break;

	}

	return x;

}

static inline int cris_swap(const int mode, int x)

{

	switch (mode)

	{

		case N: asm ("swapn\t%0\n" : "+r" (x) : "0" (x)); break;

		case W: asm ("swapw\t%0\n" : "+r" (x) : "0" (x)); break;

		case B: asm ("swapb\t%0\n" : "+r" (x) : "0" (x)); break;

		case R: asm ("swapr\t%0\n" : "+r" (x) : "0" (x)); break;

		case B|R: asm ("swapbr\t%0\n" : "+r" (x) : "0" (x)); break;

		case W|R: asm ("swapwr\t%0\n" : "+r" (x) : "0" (x)); break;

		case W|B: asm ("swapwb\t%0\n" : "+r" (x) : "0" (x)); break;

		case W|B|R: asm ("swapwbr\t%0\n" : "+r" (x) : "0" (x)); break;

		case N|R: asm ("swapnr\t%0\n" : "+r" (x) : "0" (x)); break;

		case N|B: asm ("swapnb\t%0\n" : "+r" (x) : "0" (x)); break;

		case N|B|R: asm ("swapnbr\t%0\n" : "+r" (x) : "0" (x)); break;

		case N|W: asm ("swapnw\t%0\n" : "+r" (x) : "0" (x)); break;

		default:

			err();

			break;

	}

	return x;

}

static inline int cris_swap(const int mode, int x)
static inline int FUNC_0(const int VAR_0, int VAR_1)

{

	switch (VAR_0)

	{

		case N: asm ("swapn\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case W: asm ("swapw\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case B: asm ("swapb\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case R: asm ("swapr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case B|R: asm ("swapbr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case W|R: asm ("swapwr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case W|B: asm ("swapwb\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case W|B|R: asm ("swapwbr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case N|R: asm ("swapnr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case N|B: asm ("swapnb\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case N|B|R: asm ("swapnbr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		case N|W: asm ("swapnw\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break;

		default:

			err();

			break;

	}

	return VAR_1;

}

static inline int FUNC_0(const int VAR_0, int VAR_1)
{ switch (VAR_0)
{ case N: asm ("swapn\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case W: asm ("swapw\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case B: asm ("swapb\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case R: asm ("swapr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case B|R: asm ("swapbr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case W|R: asm ("swapwr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case W|B: asm ("swapwb\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case W|B|R: asm ("swapwbr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case N|R: asm ("swapnr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case N|B: asm ("swapnb\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case N|B|R: asm ("swapnbr\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; case N|W: asm ("swapnw\t%0\n" : "+r" (VAR_1) : "0" (VAR_1)); break; default:
err(); break; } return VAR_1; }