#include "general.h"
Go to the source code of this file.
Defines | |
| #define | SWAPFIELD(x) |
| #define | SWAPHALF(x) |
| #define | SWAPWORD(x) |
| #define | SWAPDOUBLE(x) |
| #define | ALWAYS_SWAPFIELD(x) |
| #define | ALWAYS_SWAPHALF(x) |
| #define | ALWAYS_SWAPWORD(x) |
| #define | ALWAYS_SWAPDOUBLE(x) |
Definition in file mips_swap.h.
|
|
Value: {char tmp_byte; \
tmp_byte = *((char*)(x)+0); \
*((char*)(x)+0) = *((char*)(x)+7); \
*((char*)(x)+7) = tmp_byte; \
tmp_byte = *((char*)(x)+1); \
*((char*)(x)+1) = *((char*)(x)+6); \
*((char*)(x)+6) = tmp_byte; \
tmp_byte = *((char*)(x)+2); \
*((char*)(x)+2) = *((char*)(x)+5); \
*((char*)(x)+5) = tmp_byte; \
tmp_byte = *((char*)(x)+3); \
*((char*)(x)+3) = *((char*)(x)+4); \
*((char*)(x)+4) = tmp_byte; \
}Definition at line 106 of file mips_swap.h. |
|
|
Value: {\
if (sizeof(*(x))==sizeof(short)) {SWAPHALF((x))} \
else if (sizeof(*(x))==sizeof(int)) {SWAPWORD((x))} \
else if (sizeof(*(x))==sizeof(double)){SWAPDOUBLE((x))}\
}Definition at line 86 of file mips_swap.h. |
|
|
Value: {char tmp_byte; \
tmp_byte = *((char*)(x)+0); \
*((char*)(x)+0) = *((char*)(x)+1); \
*((char*)(x)+1) = tmp_byte; \
}Definition at line 92 of file mips_swap.h. |
|
|
Value: {char tmp_byte; \
tmp_byte = *((char*)(x)+0); \
*((char*)(x)+0) = *((char*)(x)+3); \
*((char*)(x)+3) = tmp_byte; \
tmp_byte = *((char*)(x)+1); \
*((char*)(x)+1) = *((char*)(x)+2); \
*((char*)(x)+2) = tmp_byte; \
}Definition at line 97 of file mips_swap.h. |
|
|
Definition at line 81 of file mips_swap.h. Referenced by rr_fread(), and rr_fwrite(). |
|
|
Definition at line 78 of file mips_swap.h. |
|
|
Definition at line 79 of file mips_swap.h. Referenced by rr_fread(), rr_fwrite(), and write_bin_lm(). |
|
|
Definition at line 80 of file mips_swap.h. Referenced by rr_fread(), rr_fwrite(), and write_bin_lm(). |
1.2.18