summaryrefslogtreecommitdiffstats
path: root/lib6145
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-06-08 17:51:23 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-06-08 19:47:18 -0400
commit679e4c2606aca4dfcde5306a0a420a42cba0bee9 (patch)
treec92bf38906849c5f6b2bc5eea4af30d598a43f30 /lib6145
parent64dd3171638f65779524686ddc68abd1cc2800fb (diff)
downloadselphy_print-679e4c2606aca4dfcde5306a0a420a42cba0bee9.tar.gz
selphy_print-679e4c2606aca4dfcde5306a0a420a42cba0bee9.tar.bz2
selphy_print-679e4c2606aca4dfcde5306a0a420a42cba0bee9.zip
common: Get rid of [le|be]64_to_cpu macros
They operate on integers, not floats. Floating point requires different handling.
Diffstat (limited to 'lib6145')
-rw-r--r--lib6145/libS6145ImageReProcess.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib6145/libS6145ImageReProcess.c b/lib6145/libS6145ImageReProcess.c
index 5248b66..8bc7e33 100644
--- a/lib6145/libS6145ImageReProcess.c
+++ b/lib6145/libS6145ImageReProcess.c
@@ -225,27 +225,21 @@ static void LeadEdgeCorrection(void);
//-------------------------------------------------------------------------
// Endian Manipulation macros
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
-#define le64_to_cpu(__x) __x
-#define le32_to_cpu(__x) __x
#define le16_to_cpu(__x) __x
+#define le32_to_cpu(__x) __x
#define be16_to_cpu(__x) __builtin_bswap16(__x)
#define be32_to_cpu(__x) __builtin_bswap32(__x)
-#define be64_to_cpu(__x) __builtin_bswap64(__x)
#else
#define le16_to_cpu(__x) __builtin_bswap16(__x)
#define le32_to_cpu(__x) __builtin_bswap32(__x)
-#define le64_to_cpu(__x) __builtin_bswap64(__x)
-#define be64_to_cpu(__x) __x
-#define be32_to_cpu(__x) __x
#define be16_to_cpu(__x) __x
+#define be32_to_cpu(__x) __x
#endif
#define cpu_to_le16 le16_to_cpu
#define cpu_to_le32 le32_to_cpu
#define cpu_to_be16 be16_to_cpu
#define cpu_to_be32 be32_to_cpu
-#define cpu_to_le64 le64_to_cpu
-#define cpu_to_be64 be64_to_cpu
//-------------------------------------------------------------------------
// Data declarations