Author: blueswirl Date: 2009-08-02 13:01:23 +0200 (Sun, 02 Aug 2009) New Revision: 520
Modified: trunk/openbios-devel/include/ppc/types.h trunk/openbios-devel/include/sparc64/types.h Log: add more cell type formatting macros for ppc and sparc64 (Igor Kovalenko)
Modified: trunk/openbios-devel/include/ppc/types.h =================================================================== --- trunk/openbios-devel/include/ppc/types.h 2009-08-02 10:59:49 UTC (rev 519) +++ trunk/openbios-devel/include/ppc/types.h 2009-08-02 11:01:23 UTC (rev 520) @@ -35,6 +35,11 @@ typedef int64_t dcell; typedef uint64_t ducell;
+#define FMT_cell "%d" +#define FMT_ucell "%u" +#define FMT_ucellx "%08x" +#define FMT_ucellX "%08X" + #define bitspercell (sizeof(cell)<<3) #define bitsperdcell (sizeof(dcell)<<3)
Modified: trunk/openbios-devel/include/sparc64/types.h =================================================================== --- trunk/openbios-devel/include/sparc64/types.h 2009-08-02 10:59:49 UTC (rev 519) +++ trunk/openbios-devel/include/sparc64/types.h 2009-08-02 11:01:23 UTC (rev 520) @@ -32,9 +32,10 @@ typedef int64_t cell; typedef uint64_t ucell;
-#define FMT_cell "%lld" +#define FMT_cell "%lld" #define FMT_ucell "%llu" #define FMT_ucellx "%016llx" +#define FMT_ucellX "%016llX"
#ifdef NEED_FAKE_INT128_T typedef struct {