Author: blueswirl Date: 2009-07-31 13:13:16 +0200 (Fri, 31 Jul 2009) New Revision: 515
Modified: trunk/openbios-devel/include/sparc64/types.h Log: Sparc64 cell based types (Igor Kovalenko)
Use int64_t for cell and uint64_t for ucell. Define printf-style format macros to ease writing cell-type-independend log traces.
Modified: trunk/openbios-devel/include/sparc64/types.h =================================================================== --- trunk/openbios-devel/include/sparc64/types.h 2009-07-31 11:12:18 UTC (rev 514) +++ trunk/openbios-devel/include/sparc64/types.h 2009-07-31 11:13:16 UTC (rev 515) @@ -29,9 +29,13 @@ #include "autoconf.h"
/* cell based types */ -typedef long long cell; -typedef unsigned long long ucell; +typedef int64_t cell; +typedef uint64_t ucell;
+#define FMT_cell "%lld" +#define FMT_ucell "%llu" +#define FMT_ucellx "%016llx" + #ifdef NEED_FAKE_INT128_T typedef struct { uint64_t hi;