mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems
Define jlong as long on all LP64 platforms and add JLONG_FORMAT macro. Reviewed-by: dholmes, coleenp, mikael, kvn
This commit is contained in:
parent
07e2e8803a
commit
68f3dd76c9
34 changed files with 87 additions and 111 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -1250,6 +1250,14 @@ inline int build_int_from_shorts( jushort low, jushort high ) {
|
|||
|
||||
#define PTR64_FORMAT "0x%016" PRIx64
|
||||
|
||||
// Format jlong, if necessary
|
||||
#ifndef JLONG_FORMAT
|
||||
#define JLONG_FORMAT INT64_FORMAT
|
||||
#endif
|
||||
#ifndef JULONG_FORMAT
|
||||
#define JULONG_FORMAT UINT64_FORMAT
|
||||
#endif
|
||||
|
||||
// Format pointers which change size between 32- and 64-bit.
|
||||
#ifdef _LP64
|
||||
#define INTPTR_FORMAT "0x%016" PRIxPTR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue