1
1
/*******************************************************************************
2
* Copyright (c) 2000, 2007 IBM Corporation and others.
2
* Copyright (c) 2000, 2008 IBM Corporation and others.
3
3
* All rights reserved. This program and the accompanying materials
4
4
* are made available under the terms of the Eclipse Public License v1.0
5
5
* which accompanies this distribution, and is available at
31
31
JNIEXPORT void JNICALL C_NATIVE(free)
32
(JNIEnv *env, jclass that, jint arg0)
32
(JNIEnv *env, jclass that, jintLong arg0)
34
34
C_NATIVE_ENTER(env, that, free_FUNC);
35
35
free((void *)arg0);
41
JNIEXPORT jint JNICALL C_NATIVE(getenv)
41
JNIEXPORT jintLong JNICALL C_NATIVE(getenv)
42
42
(JNIEnv *env, jclass that, jbyteArray arg0)
44
44
jbyte *lparg0=NULL;
46
46
C_NATIVE_ENTER(env, that, getenv_FUNC);
47
47
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
48
rc = (jint)getenv((const char *)lparg0);
48
rc = (jintLong)getenv((const char *)lparg0);
50
50
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
51
51
C_NATIVE_EXIT(env, that, getenv_FUNC);
57
JNIEXPORT jint JNICALL C_NATIVE(malloc)
58
(JNIEnv *env, jclass that, jint arg0)
57
JNIEXPORT jintLong JNICALL C_NATIVE(malloc)
58
(JNIEnv *env, jclass that, jintLong arg0)
61
61
C_NATIVE_ENTER(env, that, malloc_FUNC);
62
rc = (jint)malloc(arg0);
62
rc = (jintLong)malloc(arg0);
63
63
C_NATIVE_EXIT(env, that, malloc_FUNC);
68
#ifndef NO_memmove__III
69
JNIEXPORT void JNICALL C_NATIVE(memmove__III)
70
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
68
#if (!defined(NO_memmove__III) && !defined(JNI64)) || (!defined(NO_memmove__JJJ) && defined(JNI64))
70
JNIEXPORT void JNICALL C_NATIVE(memmove__III)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2)
72
JNIEXPORT void JNICALL C_NATIVE(memmove__JJJ)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2)
72
76
C_NATIVE_ENTER(env, that, memmove__III_FUNC);
78
C_NATIVE_ENTER(env, that, memmove__JJJ_FUNC);
73
80
memmove((void *)arg0, (const void *)arg1, (size_t)arg2);
74
82
C_NATIVE_EXIT(env, that, memmove__III_FUNC);
84
C_NATIVE_EXIT(env, that, memmove__JJJ_FUNC);
78
#ifndef NO_memmove__I_3BI
79
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3BI)
80
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2)
89
#if (!defined(NO_memmove__I_3BI) && !defined(JNI64)) || (!defined(NO_memmove__J_3BJ) && defined(JNI64))
91
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3BI)(JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jintLong arg2)
93
JNIEXPORT void JNICALL C_NATIVE(memmove__J_3BJ)(JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jintLong arg2)
82
96
jbyte *lparg1=NULL;
83
98
C_NATIVE_ENTER(env, that, memmove__I_3BI_FUNC);
100
C_NATIVE_ENTER(env, that, memmove__J_3BJ_FUNC);
84
102
#ifdef JNI_VERSION_1_2
86
104
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail;
100
118
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, JNI_ABORT);
102
121
C_NATIVE_EXIT(env, that, memmove__I_3BI_FUNC);
123
C_NATIVE_EXIT(env, that, memmove__J_3BJ_FUNC);
106
#ifndef NO_memmove__I_3CI
107
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3CI)
108
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2)
128
#if (!defined(NO_memmove__I_3CI) && !defined(JNI64)) || (!defined(NO_memmove__J_3CJ) && defined(JNI64))
130
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3CI)(JNIEnv *env, jclass that, jintLong arg0, jcharArray arg1, jintLong arg2)
132
JNIEXPORT void JNICALL C_NATIVE(memmove__J_3CJ)(JNIEnv *env, jclass that, jintLong arg0, jcharArray arg1, jintLong arg2)
110
135
jchar *lparg1=NULL;
111
137
C_NATIVE_ENTER(env, that, memmove__I_3CI_FUNC);
139
C_NATIVE_ENTER(env, that, memmove__J_3CJ_FUNC);
112
141
#ifdef JNI_VERSION_1_2
113
142
if (IS_JNI_1_2) {
114
143
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail;
128
157
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, JNI_ABORT);
130
160
C_NATIVE_EXIT(env, that, memmove__I_3CI_FUNC);
162
C_NATIVE_EXIT(env, that, memmove__J_3CJ_FUNC);
134
#ifndef NO_memmove__I_3DI
135
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3DI)
136
(JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jint arg2)
167
#if (!defined(NO_memmove__I_3DI) && !defined(JNI64)) || (!defined(NO_memmove__J_3DJ) && defined(JNI64))
169
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3DI)(JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jintLong arg2)
171
JNIEXPORT void JNICALL C_NATIVE(memmove__J_3DJ)(JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jintLong arg2)
138
174
jdouble *lparg1=NULL;
139
176
C_NATIVE_ENTER(env, that, memmove__I_3DI_FUNC);
178
C_NATIVE_ENTER(env, that, memmove__J_3DJ_FUNC);
140
180
#ifdef JNI_VERSION_1_2
141
181
if (IS_JNI_1_2) {
142
182
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail;
156
196
if (arg1 && lparg1) (*env)->ReleaseDoubleArrayElements(env, arg1, lparg1, JNI_ABORT);
158
199
C_NATIVE_EXIT(env, that, memmove__I_3DI_FUNC);
201
C_NATIVE_EXIT(env, that, memmove__J_3DJ_FUNC);
162
#ifndef NO_memmove__I_3FI
163
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3FI)
164
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jint arg2)
206
#if (!defined(NO_memmove__I_3FI) && !defined(JNI64)) || (!defined(NO_memmove__J_3FJ) && defined(JNI64))
208
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3FI)(JNIEnv *env, jclass that, jintLong arg0, jfloatArray arg1, jintLong arg2)
210
JNIEXPORT void JNICALL C_NATIVE(memmove__J_3FJ)(JNIEnv *env, jclass that, jintLong arg0, jfloatArray arg1, jintLong arg2)
166
213
jfloat *lparg1=NULL;
167
215
C_NATIVE_ENTER(env, that, memmove__I_3FI_FUNC);
217
C_NATIVE_ENTER(env, that, memmove__J_3FJ_FUNC);
168
219
#ifdef JNI_VERSION_1_2
169
220
if (IS_JNI_1_2) {
170
221
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail;
184
235
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, JNI_ABORT);
186
238
C_NATIVE_EXIT(env, that, memmove__I_3FI_FUNC);
240
C_NATIVE_EXIT(env, that, memmove__J_3FJ_FUNC);
190
#ifndef NO_memmove__I_3II
191
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3II)
192
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jint arg2)
245
#if (!defined(NO_memmove__I_3II) && !defined(JNI64)) || (!defined(NO_memmove__J_3IJ) && defined(JNI64))
247
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3II)(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1, jintLong arg2)
249
JNIEXPORT void JNICALL C_NATIVE(memmove__J_3IJ)(JNIEnv *env, jclass that, jintLong arg0, jintArray arg1, jintLong arg2)
194
252
jint *lparg1=NULL;
195
254
C_NATIVE_ENTER(env, that, memmove__I_3II_FUNC);
256
C_NATIVE_ENTER(env, that, memmove__J_3IJ_FUNC);
196
258
#ifdef JNI_VERSION_1_2
197
259
if (IS_JNI_1_2) {
198
260
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail;
212
274
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, JNI_ABORT);
214
277
C_NATIVE_EXIT(env, that, memmove__I_3II_FUNC);
279
C_NATIVE_EXIT(env, that, memmove__J_3IJ_FUNC);
218
#ifndef NO_memmove__I_3JI
219
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3JI)
220
(JNIEnv *env, jclass that, jint arg0, jlongArray arg1, jint arg2)
284
#if (!defined(NO_memmove__I_3JI) && !defined(JNI64)) || (!defined(NO_memmove__J_3JJ) && defined(JNI64))
286
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3JI)(JNIEnv *env, jclass that, jintLong arg0, jlongArray arg1, jintLong arg2)
288
JNIEXPORT void JNICALL C_NATIVE(memmove__J_3JJ)(JNIEnv *env, jclass that, jintLong arg0, jlongArray arg1, jintLong arg2)
222
291
jlong *lparg1=NULL;
223
293
C_NATIVE_ENTER(env, that, memmove__I_3JI_FUNC);
295
C_NATIVE_ENTER(env, that, memmove__J_3JJ_FUNC);
224
297
#ifdef JNI_VERSION_1_2
225
298
if (IS_JNI_1_2) {
226
299
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail;
240
313
if (arg1 && lparg1) (*env)->ReleaseLongArrayElements(env, arg1, lparg1, JNI_ABORT);
242
316
C_NATIVE_EXIT(env, that, memmove__I_3JI_FUNC);
318
C_NATIVE_EXIT(env, that, memmove__J_3JJ_FUNC);
246
#ifndef NO_memmove__I_3SI
247
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3SI)
248
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1, jint arg2)
323
#if (!defined(NO_memmove__I_3SI) && !defined(JNI64)) || (!defined(NO_memmove__J_3SJ) && defined(JNI64))
325
JNIEXPORT void JNICALL C_NATIVE(memmove__I_3SI)(JNIEnv *env, jclass that, jintLong arg0, jshortArray arg1, jintLong arg2)
327
JNIEXPORT void JNICALL C_NATIVE(memmove__J_3SJ)(JNIEnv *env, jclass that, jintLong arg0, jshortArray arg1, jintLong arg2)
250
330
jshort *lparg1=NULL;
251
332
C_NATIVE_ENTER(env, that, memmove__I_3SI_FUNC);
334
C_NATIVE_ENTER(env, that, memmove__J_3SJ_FUNC);
252
336
#ifdef JNI_VERSION_1_2
253
337
if (IS_JNI_1_2) {
254
338
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail;
268
352
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, JNI_ABORT);
270
355
C_NATIVE_EXIT(env, that, memmove__I_3SI_FUNC);
357
C_NATIVE_EXIT(env, that, memmove__J_3SJ_FUNC);
274
#ifndef NO_memmove___3BII
275
JNIEXPORT void JNICALL C_NATIVE(memmove___3BII)
276
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jint arg2)
362
#if (!defined(NO_memmove___3BII) && !defined(JNI64)) || (!defined(NO_memmove___3BJJ) && defined(JNI64))
364
JNIEXPORT void JNICALL C_NATIVE(memmove___3BII)(JNIEnv *env, jclass that, jbyteArray arg0, jintLong arg1, jintLong arg2)
366
JNIEXPORT void JNICALL C_NATIVE(memmove___3BJJ)(JNIEnv *env, jclass that, jbyteArray arg0, jintLong arg1, jintLong arg2)
278
369
jbyte *lparg0=NULL;
279
371
C_NATIVE_ENTER(env, that, memmove___3BII_FUNC);
373
C_NATIVE_ENTER(env, that, memmove___3BJJ_FUNC);
280
375
#ifdef JNI_VERSION_1_2
281
376
if (IS_JNI_1_2) {
282
377
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
296
391
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
298
394
C_NATIVE_EXIT(env, that, memmove___3BII_FUNC);
396
C_NATIVE_EXIT(env, that, memmove___3BJJ_FUNC);
302
#ifndef NO_memmove___3B_3CI
303
JNIEXPORT void JNICALL C_NATIVE(memmove___3B_3CI)
304
(JNIEnv *env, jclass that, jbyteArray arg0, jcharArray arg1, jint arg2)
401
#if (!defined(NO_memmove___3B_3CI) && !defined(JNI64)) || (!defined(NO_memmove___3B_3CJ) && defined(JNI64))
403
JNIEXPORT void JNICALL C_NATIVE(memmove___3B_3CI)(JNIEnv *env, jclass that, jbyteArray arg0, jcharArray arg1, jintLong arg2)
405
JNIEXPORT void JNICALL C_NATIVE(memmove___3B_3CJ)(JNIEnv *env, jclass that, jbyteArray arg0, jcharArray arg1, jintLong arg2)
306
408
jbyte *lparg0=NULL;
307
409
jchar *lparg1=NULL;
308
411
C_NATIVE_ENTER(env, that, memmove___3B_3CI_FUNC);
413
C_NATIVE_ENTER(env, that, memmove___3B_3CJ_FUNC);
309
415
#ifdef JNI_VERSION_1_2
310
416
if (IS_JNI_1_2) {
311
417
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
328
434
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, JNI_ABORT);
329
435
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
331
438
C_NATIVE_EXIT(env, that, memmove___3B_3CI_FUNC);
440
C_NATIVE_EXIT(env, that, memmove___3B_3CJ_FUNC);
335
#ifndef NO_memmove___3CII
336
JNIEXPORT void JNICALL C_NATIVE(memmove___3CII)
337
(JNIEnv *env, jclass that, jcharArray arg0, jint arg1, jint arg2)
445
#if (!defined(NO_memmove___3CII) && !defined(JNI64)) || (!defined(NO_memmove___3CJJ) && defined(JNI64))
447
JNIEXPORT void JNICALL C_NATIVE(memmove___3CII)(JNIEnv *env, jclass that, jcharArray arg0, jintLong arg1, jintLong arg2)
449
JNIEXPORT void JNICALL C_NATIVE(memmove___3CJJ)(JNIEnv *env, jclass that, jcharArray arg0, jintLong arg1, jintLong arg2)
339
452
jchar *lparg0=NULL;
340
454
C_NATIVE_ENTER(env, that, memmove___3CII_FUNC);
456
C_NATIVE_ENTER(env, that, memmove___3CJJ_FUNC);
341
458
#ifdef JNI_VERSION_1_2
342
459
if (IS_JNI_1_2) {
343
460
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
357
474
if (arg0 && lparg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0);
359
477
C_NATIVE_EXIT(env, that, memmove___3CII_FUNC);
479
C_NATIVE_EXIT(env, that, memmove___3CJJ_FUNC);
363
#ifndef NO_memmove___3DII
364
JNIEXPORT void JNICALL C_NATIVE(memmove___3DII)
365
(JNIEnv *env, jclass that, jdoubleArray arg0, jint arg1, jint arg2)
484
#if (!defined(NO_memmove___3DII) && !defined(JNI64)) || (!defined(NO_memmove___3DJJ) && defined(JNI64))
486
JNIEXPORT void JNICALL C_NATIVE(memmove___3DII)(JNIEnv *env, jclass that, jdoubleArray arg0, jintLong arg1, jintLong arg2)
488
JNIEXPORT void JNICALL C_NATIVE(memmove___3DJJ)(JNIEnv *env, jclass that, jdoubleArray arg0, jintLong arg1, jintLong arg2)
367
491
jdouble *lparg0=NULL;
368
493
C_NATIVE_ENTER(env, that, memmove___3DII_FUNC);
495
C_NATIVE_ENTER(env, that, memmove___3DJJ_FUNC);
369
497
#ifdef JNI_VERSION_1_2
370
498
if (IS_JNI_1_2) {
371
499
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
385
513
if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
387
516
C_NATIVE_EXIT(env, that, memmove___3DII_FUNC);
518
C_NATIVE_EXIT(env, that, memmove___3DJJ_FUNC);
391
#ifndef NO_memmove___3FII
392
JNIEXPORT void JNICALL C_NATIVE(memmove___3FII)
393
(JNIEnv *env, jclass that, jfloatArray arg0, jint arg1, jint arg2)
523
#if (!defined(NO_memmove___3FII) && !defined(JNI64)) || (!defined(NO_memmove___3FJJ) && defined(JNI64))
525
JNIEXPORT void JNICALL C_NATIVE(memmove___3FII)(JNIEnv *env, jclass that, jfloatArray arg0, jintLong arg1, jintLong arg2)
527
JNIEXPORT void JNICALL C_NATIVE(memmove___3FJJ)(JNIEnv *env, jclass that, jfloatArray arg0, jintLong arg1, jintLong arg2)
395
530
jfloat *lparg0=NULL;
396
532
C_NATIVE_ENTER(env, that, memmove___3FII_FUNC);
534
C_NATIVE_ENTER(env, that, memmove___3FJJ_FUNC);
397
536
#ifdef JNI_VERSION_1_2
398
537
if (IS_JNI_1_2) {
399
538
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
413
552
if (arg0 && lparg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0);
415
555
C_NATIVE_EXIT(env, that, memmove___3FII_FUNC);
557
C_NATIVE_EXIT(env, that, memmove___3FJJ_FUNC);
419
#ifndef NO_memmove___3III
420
JNIEXPORT void JNICALL C_NATIVE(memmove___3III)
421
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jint arg2)
562
#if (!defined(NO_memmove___3III) && !defined(JNI64)) || (!defined(NO_memmove___3IJJ) && defined(JNI64))
564
JNIEXPORT void JNICALL C_NATIVE(memmove___3III)(JNIEnv *env, jclass that, jintArray arg0, jintLong arg1, jintLong arg2)
566
JNIEXPORT void JNICALL C_NATIVE(memmove___3IJJ)(JNIEnv *env, jclass that, jintArray arg0, jintLong arg1, jintLong arg2)
423
569
jint *lparg0=NULL;
424
571
C_NATIVE_ENTER(env, that, memmove___3III_FUNC);
573
C_NATIVE_ENTER(env, that, memmove___3IJJ_FUNC);
425
575
#ifdef JNI_VERSION_1_2
426
576
if (IS_JNI_1_2) {
427
577
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
441
591
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
443
594
C_NATIVE_EXIT(env, that, memmove___3III_FUNC);
596
C_NATIVE_EXIT(env, that, memmove___3IJJ_FUNC);
447
#ifndef NO_memmove___3I_3BI
448
JNIEXPORT void JNICALL C_NATIVE(memmove___3I_3BI)
449
(JNIEnv *env, jclass that, jintArray arg0, jbyteArray arg1, jint arg2)
601
#if (!defined(NO_memmove___3I_3BI) && !defined(JNI64)) || (!defined(NO_memmove___3I_3BJ) && defined(JNI64))
603
JNIEXPORT void JNICALL C_NATIVE(memmove___3I_3BI)(JNIEnv *env, jclass that, jintArray arg0, jbyteArray arg1, jintLong arg2)
605
JNIEXPORT void JNICALL C_NATIVE(memmove___3I_3BJ)(JNIEnv *env, jclass that, jintArray arg0, jbyteArray arg1, jintLong arg2)
451
608
jint *lparg0=NULL;
452
609
jbyte *lparg1=NULL;
453
611
C_NATIVE_ENTER(env, that, memmove___3I_3BI_FUNC);
613
C_NATIVE_ENTER(env, that, memmove___3I_3BJ_FUNC);
454
615
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
455
616
#ifdef JNI_VERSION_1_2
456
617
if (IS_JNI_1_2) {
471
632
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
473
634
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
474
636
C_NATIVE_EXIT(env, that, memmove___3I_3BI_FUNC);
638
C_NATIVE_EXIT(env, that, memmove___3I_3BJ_FUNC);
478
#ifndef NO_memmove___3JII
479
JNIEXPORT void JNICALL C_NATIVE(memmove___3JII)
480
(JNIEnv *env, jclass that, jlongArray arg0, jint arg1, jint arg2)
643
#if (!defined(NO_memmove___3JII) && !defined(JNI64)) || (!defined(NO_memmove___3JJJ) && defined(JNI64))
645
JNIEXPORT void JNICALL C_NATIVE(memmove___3JII)(JNIEnv *env, jclass that, jlongArray arg0, jintLong arg1, jintLong arg2)
647
JNIEXPORT void JNICALL C_NATIVE(memmove___3JJJ)(JNIEnv *env, jclass that, jlongArray arg0, jintLong arg1, jintLong arg2)
482
650
jlong *lparg0=NULL;
483
652
C_NATIVE_ENTER(env, that, memmove___3JII_FUNC);
654
C_NATIVE_ENTER(env, that, memmove___3JJJ_FUNC);
484
656
#ifdef JNI_VERSION_1_2
485
657
if (IS_JNI_1_2) {
486
658
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
500
672
if (arg0 && lparg0) (*env)->ReleaseLongArrayElements(env, arg0, lparg0, 0);
502
675
C_NATIVE_EXIT(env, that, memmove___3JII_FUNC);
677
C_NATIVE_EXIT(env, that, memmove___3JJJ_FUNC);
506
#ifndef NO_memmove___3SII
507
JNIEXPORT void JNICALL C_NATIVE(memmove___3SII)
508
(JNIEnv *env, jclass that, jshortArray arg0, jint arg1, jint arg2)
682
#if (!defined(NO_memmove___3SII) && !defined(JNI64)) || (!defined(NO_memmove___3SJJ) && defined(JNI64))
684
JNIEXPORT void JNICALL C_NATIVE(memmove___3SII)(JNIEnv *env, jclass that, jshortArray arg0, jintLong arg1, jintLong arg2)
686
JNIEXPORT void JNICALL C_NATIVE(memmove___3SJJ)(JNIEnv *env, jclass that, jshortArray arg0, jintLong arg1, jintLong arg2)
510
689
jshort *lparg0=NULL;
511
691
C_NATIVE_ENTER(env, that, memmove___3SII_FUNC);
693
C_NATIVE_ENTER(env, that, memmove___3SJJ_FUNC);
512
695
#ifdef JNI_VERSION_1_2
513
696
if (IS_JNI_1_2) {
514
697
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail;
528
711
if (arg0 && lparg0) (*env)->ReleaseShortArrayElements(env, arg0, lparg0, 0);
530
714
C_NATIVE_EXIT(env, that, memmove___3SII_FUNC);
716
C_NATIVE_EXIT(env, that, memmove___3SJJ_FUNC);
534
721
#ifndef NO_memset
535
JNIEXPORT jint JNICALL C_NATIVE(memset)
536
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
722
JNIEXPORT jintLong JNICALL C_NATIVE(memset)
723
(JNIEnv *env, jclass that, jintLong arg0, jint arg1, jintLong arg2)
539
726
C_NATIVE_ENTER(env, that, memset_FUNC);
540
rc = (jint)memset((void *)arg0, arg1, (size_t)arg2);
727
rc = (jintLong)memset((void *)arg0, arg1, (size_t)arg2);
541
728
C_NATIVE_EXIT(env, that, memset_FUNC);
546
733
#ifndef NO_strlen
547
734
JNIEXPORT jint JNICALL C_NATIVE(strlen)
548
(JNIEnv *env, jclass that, jint arg0)
735
(JNIEnv *env, jclass that, jintLong arg0)
551
738
C_NATIVE_ENTER(env, that, strlen_FUNC);