equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
63 |
63 |
64 /* For static variables initialized to zero */ |
64 /* For static variables initialized to zero */ |
65 #define jlong_zero_init ((jlong) 0L) |
65 #define jlong_zero_init ((jlong) 0L) |
66 |
66 |
67 #ifdef _LP64 |
67 #ifdef _LP64 |
68 #define jlong_to_ptr(a) ((void*)(a)) |
68 #ifndef jlong_to_ptr |
69 #define ptr_to_jlong(a) ((jlong)(a)) |
69 #define jlong_to_ptr(a) ((void*)(a)) |
|
70 #endif |
|
71 #ifndef ptr_to_jlong |
|
72 #define ptr_to_jlong(a) ((jlong)(a)) |
|
73 #endif |
70 #else |
74 #else |
71 #define jlong_to_ptr(a) ((void*)(int)(a)) |
75 #ifndef jlong_to_ptr |
72 #define ptr_to_jlong(a) ((jlong)(int)(a)) |
76 #define jlong_to_ptr(a) ((void*)(int)(a)) |
|
77 #endif |
|
78 #ifndef ptr_to_jlong |
|
79 #define ptr_to_jlong(a) ((jlong)(int)(a)) |
|
80 #endif |
73 #endif |
81 #endif |
74 |
82 |
75 #define jint_to_jlong(a) ((jlong)(a)) |
83 #define jint_to_jlong(a) ((jlong)(a)) |
76 #define jlong_to_jint(a) ((jint)(a)) |
84 #define jlong_to_jint(a) ((jint)(a)) |
77 |
85 |