mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32347 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b14fbe300
commit
f9bae438aa
@ -303,6 +303,16 @@ unsigned int swap_32(unsigned int v) {
|
|||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Nor is this (yes, it really is bswap):
|
||||||
|
|
||||||
|
unsigned long reverse(unsigned v) {
|
||||||
|
unsigned t;
|
||||||
|
t = v ^ ((v << 16) | (v >> 16));
|
||||||
|
t &= ~0xff0000;
|
||||||
|
v = (v << 24) | (v >> 8);
|
||||||
|
return v ^ (t >> 8);
|
||||||
|
}
|
||||||
|
|
||||||
//===---------------------------------------------------------------------===//
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
These should turn into single 16-bit (unaligned?) loads on little/big endian
|
These should turn into single 16-bit (unaligned?) loads on little/big endian
|
||||||
|
Loading…
x
Reference in New Issue
Block a user