< prev index next >

src/hotspot/share/utilities/globalDefinitions.hpp

Print this page




  78 // doesn't provide appropriate definitions, they should be provided in
  79 // the compiler-specific definitions file (e.g., globalDefinitions_gcc.hpp)
  80 
  81 #define BOOL_TO_STR(_b_) ((_b_) ? "true" : "false")
  82 
  83 // Format 32-bit quantities.
  84 #define INT32_FORMAT           "%" PRId32
  85 #define UINT32_FORMAT          "%" PRIu32
  86 #define INT32_FORMAT_W(width)  "%" #width PRId32
  87 #define UINT32_FORMAT_W(width) "%" #width PRIu32
  88 
  89 #define PTR32_FORMAT           "0x%08" PRIx32
  90 #define PTR32_FORMAT_W(width)  "0x%" #width PRIx32
  91 
  92 // Format 64-bit quantities.
  93 #define INT64_FORMAT           "%" PRId64
  94 #define UINT64_FORMAT          "%" PRIu64
  95 #define UINT64_FORMAT_X        "%" PRIx64
  96 #define INT64_FORMAT_W(width)  "%" #width PRId64
  97 #define UINT64_FORMAT_W(width) "%" #width PRIu64

  98 
  99 #define PTR64_FORMAT           "0x%016" PRIx64
 100 
 101 // Format jlong, if necessary
 102 #ifndef JLONG_FORMAT
 103 #define JLONG_FORMAT           INT64_FORMAT
 104 #endif
 105 #ifndef JULONG_FORMAT
 106 #define JULONG_FORMAT          UINT64_FORMAT
 107 #endif
 108 #ifndef JULONG_FORMAT_X
 109 #define JULONG_FORMAT_X        UINT64_FORMAT_X
 110 #endif
 111 
 112 // Format pointers which change size between 32- and 64-bit.
 113 #ifdef  _LP64
 114 #define INTPTR_FORMAT "0x%016" PRIxPTR
 115 #define PTR_FORMAT    "0x%016" PRIxPTR
 116 #else   // !_LP64
 117 #define INTPTR_FORMAT "0x%08"  PRIxPTR




  78 // doesn't provide appropriate definitions, they should be provided in
  79 // the compiler-specific definitions file (e.g., globalDefinitions_gcc.hpp)
  80 
  81 #define BOOL_TO_STR(_b_) ((_b_) ? "true" : "false")
  82 
  83 // Format 32-bit quantities.
  84 #define INT32_FORMAT           "%" PRId32
  85 #define UINT32_FORMAT          "%" PRIu32
  86 #define INT32_FORMAT_W(width)  "%" #width PRId32
  87 #define UINT32_FORMAT_W(width) "%" #width PRIu32
  88 
  89 #define PTR32_FORMAT           "0x%08" PRIx32
  90 #define PTR32_FORMAT_W(width)  "0x%" #width PRIx32
  91 
  92 // Format 64-bit quantities.
  93 #define INT64_FORMAT           "%" PRId64
  94 #define UINT64_FORMAT          "%" PRIu64
  95 #define UINT64_FORMAT_X        "%" PRIx64
  96 #define INT64_FORMAT_W(width)  "%" #width PRId64
  97 #define UINT64_FORMAT_W(width) "%" #width PRIu64
  98 #define UINT64_FORMAT_X_W(width) "%" #width PRIx64
  99 
 100 #define PTR64_FORMAT           "0x%016" PRIx64
 101 
 102 // Format jlong, if necessary
 103 #ifndef JLONG_FORMAT
 104 #define JLONG_FORMAT           INT64_FORMAT
 105 #endif
 106 #ifndef JULONG_FORMAT
 107 #define JULONG_FORMAT          UINT64_FORMAT
 108 #endif
 109 #ifndef JULONG_FORMAT_X
 110 #define JULONG_FORMAT_X        UINT64_FORMAT_X
 111 #endif
 112 
 113 // Format pointers which change size between 32- and 64-bit.
 114 #ifdef  _LP64
 115 #define INTPTR_FORMAT "0x%016" PRIxPTR
 116 #define PTR_FORMAT    "0x%016" PRIxPTR
 117 #else   // !_LP64
 118 #define INTPTR_FORMAT "0x%08"  PRIxPTR


< prev index next >