[Crash-utility] [Question] About BITS_PER_LONG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tao, Lianbo

BITS_PER_LONG  should equals 32 when on host x86_64 build target arm ?

diff --git a/defs.h b/defs.h
index 01f316e..4d8ebc9 100644
--- a/defs.h
+++ b/defs.h
@@ -4842,7 +4842,11 @@ struct machine_specific {
 #define UNINITIALIZED (BADVAL)
 
 #define BITS_PER_BYTE (8)
-#define BITS_PER_LONG (BITS_PER_BYTE * sizeof(long))
+#ifdef _64BIT_
+#define BITS_PER_LONG (64)
+#else
+#define BITS_PER_LONG (32)
+#endif
--
Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki

[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux