]> Git Repo - qemu.git/commitdiff
bswap.h: Remove unused cpu_to_*w() and *_to_cpup()
authorPeter Maydell <[email protected]>
Thu, 7 Jul 2016 16:20:58 +0000 (17:20 +0100)
committerPeter Maydell <[email protected]>
Tue, 12 Jul 2016 14:08:53 +0000 (15:08 +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 <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Message-id: 1467908460[email protected]

include/qemu/bswap.h

index ce3c42e4d9f2b7bb3d534816a06e9366be2fc750..3b48cf48d2896aaccdc3874bfb44904ed47ff32a 100644 (file)
@@ -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)
This page took 0.031716 seconds and 4 git commands to generate.