equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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 |
276 * Additional modifiers not defined as such in the JVM spec |
276 * Additional modifiers not defined as such in the JVM spec |
277 */ |
277 */ |
278 #define MOD_SYNTHETIC 0xf0000000 /* not in source code */ |
278 #define MOD_SYNTHETIC 0xf0000000 /* not in source code */ |
279 |
279 |
280 /* |
280 /* |
281 * jlong conversion macros |
|
282 */ |
|
283 #define jlong_zero ((jlong) 0) |
|
284 #define jlong_one ((jlong) 1) |
|
285 |
|
286 #define jlong_to_ptr(a) ((void*)(intptr_t)(a)) |
|
287 #define ptr_to_jlong(a) ((jlong)(intptr_t)(a)) |
|
288 #define jint_to_jlong(a) ((jlong)(a)) |
|
289 #define jlong_to_jint(a) ((jint)(a)) |
|
290 |
|
291 |
|
292 /* |
|
293 * util funcs |
281 * util funcs |
294 */ |
282 */ |
295 void util_initialize(JNIEnv *env); |
283 void util_initialize(JNIEnv *env); |
296 void util_reset(void); |
284 void util_reset(void); |
297 |
285 |