URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 997 |
Rev 1244 |
Line 84... |
Line 84... |
}
|
}
|
}
|
}
|
|
|
/* define these also for big endian */
|
/* define these also for big endian */
|
#if __BIG_ENDIAN__
|
#if __BIG_ENDIAN__
|
#define CNV32(x) (x) (\
|
#define CNV32(x) (\
|
((((x) >> 24) & 0xff) << 0)\
|
((((x) >> 24) & 0xff) << 0)\
|
| ((((x) >> 16) & 0xff) << 8)\
|
| ((((x) >> 16) & 0xff) << 8)\
|
| ((((x) >> 8) & 0xff) << 16)\
|
| ((((x) >> 8) & 0xff) << 16)\
|
| ((((x) >> 0) & 0xff) << 24))
|
| ((((x) >> 0) & 0xff) << 24))
|
#define CNV16(x) (x) (\
|
#define CNV16(x) (\
|
| ((((x) >> 8) & 0xff) << 0)\
|
((((x) >> 8) & 0xff) << 0)\
|
| ((((x) >> 0) & 0xff) << 8))
|
| ((((x) >> 0) & 0xff) << 8))
|
#else
|
#else
|
#define CNV16(x) (x)
|
#define CNV16(x) (x)
|
#define CNV32(x) (x)
|
#define CNV32(x) (x)
|
#endif
|
#endif
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.