[llvm-commits] CVS: llvm/lib/Target/README.txt
Chris Lattner
sabre at nondot.org
Thu Dec 7 18:01:47 PST 2006
Changes in directory llvm/lib/Target:
README.txt updated: 1.50 -> 1.51
---
Log message:
add a note
---
Diffs of the changes: (+10 -0)
README.txt | 10 ++++++++++
1 files changed, 10 insertions(+)
Index: llvm/lib/Target/README.txt
diff -u llvm/lib/Target/README.txt:1.50 llvm/lib/Target/README.txt:1.51
--- llvm/lib/Target/README.txt:1.50 Wed Nov 29 01:21:46 2006
+++ llvm/lib/Target/README.txt Thu Dec 7 20:01:32 2006
@@ -303,6 +303,16 @@
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
More information about the llvm-commits
mailing list