• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision71d6ba15a556ac56ec08f83d06a5edeb735bc8ec (tree)
Time2014-02-23 14:26:29
AuthorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

add constant_swab*

Change Summary

Incremental Difference

--- a/include/linux/byteorder/big_endian.h
+++ b/include/linux/byteorder/big_endian.h
@@ -42,6 +42,12 @@
4242 #define __cpu_to_be16(x) ((__force __be16)(__u16)(x))
4343 #define __be16_to_cpu(x) ((__force __u16)(__be16)(x))
4444
45+#define ___constant_swab64(x) (___constant_swab32(x >> 32) | \
46+ ___constant_swab32(x & 0xffffffffUL) << 32)
47+#define ___constant_swab32(x) (___constant_swab16(x >> 16) | \
48+ ___constant_swab16(x & 0xffff) << 16)
49+#define ___constant_swab16(x) ((x >> 8) | ((x & 0xff) << 8))
50+
4551 static inline __le64 __cpu_to_le64p(const __u64 *p)
4652 {
4753 return (__force __le64)__swab64p(p);