Home | History | Annotate | Download | only in native

Lines Matching refs:jint

69 // Byte-swap 2 jshort values packed in a jint.
70 static inline jint bswap_2x16(jint v) {
83 jint* dst = reinterpret_cast<jint*>(dstShorts);
84 const jint* src = reinterpret_cast<const jint*>(srcShorts);
89 jint v = *src++;
99 jint v = get_unaligned<jint>(src++);
100 put_unaligned<jint>(dst++, bswap_2x16(v));
109 static inline void swapInts(jint* dstInts, const jint* srcInts, size_t count) {
113 jint v = *srcInts++;
118 jint v = get_unaligned<int>(srcInts++);
119 put_unaligned<jint>(dstInts++, bswap_32(v));
125 jint* dst = reinterpret_cast<jint*>(dstLongs);
126 const jint* src = reinterpret_cast<const jint*>(srcLongs);
130 jint v1 = *src++;
131 jint v2 = *src++;
137 jint v1 = get_unaligned<jint>(src++);
138 jint v2 = get_unaligned<jint>(src++);
139 put_unaligned<jint>(dst++, bswap_32(v2));
140 put_unaligned<jint>(dst++, bswap_32(v1));
145 static void Memory_memmove(JNIEnv* env, jclass, jobject dstObject, jint dstOffset, jobject srcObject, jint srcOffset, jlong length) {
161 static void Memory_peekByteArray(JNIEnv* env, jclass, jlong srcAddress, jbyteArray dst, jint dstOffset, jint byteCount) {
186 static void Memory_peekCharArray(JNIEnv* env, jclass, jlong srcAddress, jcharArray dst, jint dstOffset, jint count, jboolean swap) {
190 static void Memory_peekDoubleArray(JNIEnv* env, jclass, jlong srcAddress, jdoubleArray dst, jint dstOffset, jint count, jboolean swap) {
194 static void Memory_peekFloatArray(JNIEnv* env, jclass, jlong srcAddress, jfloatArray dst, jint dstOffset, jint count, jboolean swap) {
195 PEEKER(jfloat, Float, jint, swapInts);
198 static void Memory_peekIntArray(JNIEnv* env, jclass, jlong srcAddress, jintArray dst, jint dstOffset, jint count, jboolean swap) {
199 PEEKER(jint, Int, jint, swapInts);
202 static void Memory_peekLongArray(JNIEnv* env, jclass, jlong srcAddress, jlongArray dst, jint dstOffset, jint count, jboolean swap) {
206 static void Memory_peekShortArray(JNIEnv* env, jclass, jlong srcAddress, jshortArray dst, jint dstOffset, jint count, jboolean swap) {
214 static void Memory_pokeByteArray(JNIEnv* env, jclass, jlong dstAddress, jbyteArray src, jint offset, jint length) {
238 static void Memory_pokeCharArray(JNIEnv* env, jclass, jlong dstAddress, jcharArray src, jint srcOffset, jint count, jboolean swap) {
242 static void Memory_pokeDoubleArray(JNIEnv* env, jclass, jlong dstAddress, jdoubleArray src, jint srcOffset, jint count, jboolean swap) {
246 static void Memory_pokeFloatArray(JNIEnv* env, jclass, jlong dstAddress, jfloatArray src, jint srcOffset, jint count, jboolean swap) {
247 POKER(jfloat, Float, jint, swapInts);
250 static void Memory_pokeIntArray(JNIEnv* env, jclass, jlong dstAddress, jintArray src, jint srcOffset, jint count, jboolean swap) {
251 POKER(jint, Int, jint, swapInts);
254 static void Memory_pokeLongArray(JNIEnv* env, jclass, jlong dstAddress, jlongArray src, jint srcOffset, jint count, jboolean swap) {
258 static void Memory_pokeShortArray(JNIEnv* env, jclass, jlong dstAddress, jshortArray src, jint srcOffset, jint count, jboolean swap) {
270 static jint Memory_peekIntNative(JNIEnv*, jclass, jlong srcAddress) {
271 return *cast<const jint*>(srcAddress);
274 static void Memory_pokeIntNative(JNIEnv*, jclass, jlong dstAddress, jint value) {
275 *cast<jint*>(dstAddress) = value;
298 static void unsafeBulkCopy(jbyte* dst, const jbyte* src, jint byteCount,
299 jint sizeofElement, jboolean swap) {
310 jint* dstInts = reinterpret_cast<jint*>(dst);
311 const jint* srcInts = reinterpret_cast<const jint*>(src);
320 static void Memory_unsafeBulkGet(JNIEnv* env, jclass, jobject dstObject, jint dstOffset,
321 jint byteCount, jbyteArray srcArray, jint srcOffset, jint sizeofElement, jboolean swap) {
337 static void Memory_unsafeBulkPut(JNIEnv* env, jclass, jbyteArray dstArray, jint dstOffset,
338 jint byteCount, jobject srcObject, jint srcOffset, jint sizeofElement, jboolean swap) {