mirror of
https://github.com/libretro/FBNeo.git
synced 2024-11-23 17:09:43 +00:00
needs more bitswap
This commit is contained in:
parent
30f9428ee8
commit
15a73f2bd4
@ -96,6 +96,16 @@
|
||||
((((n) >> (bit01)) & 1) << 1) | \
|
||||
((((n) >> (bit00)) & 1) << 0))
|
||||
|
||||
#define BITSWAP07(n, \
|
||||
bit06, bit05, bit04, bit03, bit02, bit01, bit00) \
|
||||
(((((n) >> (bit06)) & 1) << 6) | \
|
||||
((((n) >> (bit05)) & 1) << 5) | \
|
||||
((((n) >> (bit04)) & 1) << 4) | \
|
||||
((((n) >> (bit03)) & 1) << 3) | \
|
||||
((((n) >> (bit02)) & 1) << 2) | \
|
||||
((((n) >> (bit01)) & 1) << 1) | \
|
||||
((((n) >> (bit00)) & 1) << 0))
|
||||
|
||||
#define BITSWAP05(n, \
|
||||
bit04, bit03, bit02, bit01, bit00) \
|
||||
(((((n) >> (bit04)) & 1) << 4) | \
|
||||
@ -104,6 +114,13 @@
|
||||
((((n) >> (bit01)) & 1) << 1) | \
|
||||
((((n) >> (bit00)) & 1) << 0))
|
||||
|
||||
#define BITSWAP04(n, \
|
||||
bit03, bit02, bit01, bit00) \
|
||||
(((((n) >> (bit03)) & 1) << 3) | \
|
||||
((((n) >> (bit02)) & 1) << 2) | \
|
||||
((((n) >> (bit01)) & 1) << 1) | \
|
||||
((((n) >> (bit00)) & 1) << 0))
|
||||
|
||||
#define BIT(x,n) (((x)>>(n))&1)
|
||||
|
||||
/* ----- macros for accessing bytes and words within larger chunks ----- */
|
||||
|
Loading…
Reference in New Issue
Block a user