[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 4/6] bswap.h: Remove unused cpu_to_*w() and *_to_c
From: |
Peter Maydell |
Subject: |
[Qemu-trivial] [PATCH 4/6] bswap.h: Remove unused cpu_to_*w() and *_to_cpup() |
Date: |
Tue, 28 Jun 2016 15:50:49 +0100 |
Now that all uses of cpu_to_*w() and *_to_cpup() have been replaced
with either ld*_p()/st*_p() or by doing direct dereferences and
using the cpu_to_*()/*_to_cpu() byteswap functions, we can remove
the unused implementations.
Signed-off-by: Peter Maydell <address@hidden>
---
include/qemu/bswap.h | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/include/qemu/bswap.h b/include/qemu/bswap.h
index ce3c42e..3b48cf4 100644
--- a/include/qemu/bswap.h
+++ b/include/qemu/bswap.h
@@ -99,16 +99,6 @@ static inline void endian ## size ## _to_cpus(type *p)\
static inline void cpu_to_ ## endian ## size ## s(type *p)\
{\
glue(endian, _bswaps)(p, size);\
-}\
-\
-static inline type endian ## size ## _to_cpup(const type *p)\
-{\
- return glue(glue(endian, size), _to_cpu)(*p);\
-}\
-\
-static inline void cpu_to_ ## endian ## size ## w(type *p, type v)\
-{\
- *p = glue(glue(cpu_to_, endian), size)(v);\
}
CPU_CONVERT(be, 16, uint16_t)
--
1.9.1
- [Qemu-trivial] [PATCH 0/6] Drop cpu_to_*w, *_to_cpup, document cpu_to_*, *_to_cpu, Peter Maydell, 2016/06/28
- [Qemu-trivial] [PATCH 5/6] bswap.h: Fix comment typo, Peter Maydell, 2016/06/28
- [Qemu-trivial] [PATCH 3/6] hw/bt: Don't use cpu_to_*w() and *_to_cpup(), Peter Maydell, 2016/06/28
- [Qemu-trivial] [PATCH 1/6] fsdev/9p-iov-marshal.c: Don't use cpu_to_*w() functions, Peter Maydell, 2016/06/28
- [Qemu-trivial] [PATCH 4/6] bswap.h: Remove unused cpu_to_*w() and *_to_cpup(),
Peter Maydell <=
- [Qemu-trivial] [PATCH 6/6] bswap.h: Document cpu_to_* and *_to_cpu conversion functions, Peter Maydell, 2016/06/28
- [Qemu-trivial] [PATCH 2/6] block/qcow2: Don't use cpu_to_*w(), Peter Maydell, 2016/06/28