mirror of
https://github.com/rdolbeau/NuBusFPGA.git
synced 2025-01-04 02:30:59 +00:00
reverse byte...
This commit is contained in:
parent
6e8b0192e2
commit
d1f07a12be
@ -1305,6 +1305,7 @@ static void bitblit_src32_dst32_fwd_fwd(const unsigned char op,
|
||||
/*
|
||||
3210
|
||||
0321 // fsr by 8 ; could be rot
|
||||
1230 // rev8
|
||||
*/
|
||||
|
||||
static inline uint32_t pixelswap(const uint32_t p) {
|
||||
@ -1312,7 +1313,7 @@ static inline uint32_t pixelswap(const uint32_t p) {
|
||||
/* asm("fsr %0, %1, %2, %3\n" : "=r"(r) : "r"(r), "r"(r), "r"(8)); */
|
||||
uint32_t r;
|
||||
asm("fsr %0, %1, %2, %3\n" : "=r"(r) : "r"(p), "r"(p), "r"(8));
|
||||
return r;
|
||||
return __builtin_bswap32(r);
|
||||
}
|
||||
|
||||
#define TRFOVERh(d,m,s) (d) = (ufma8vlv(pixelswap(s), (m), ufma8vlv((d), (0xffffffff^(m)), 0)))
|
||||
|
Loading…
Reference in New Issue
Block a user