All Downloads are FREE. Search and download functionalities are using the official Maven repository.

astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_APSInt_cxx_0xc3115fc2.cc Maven / Gradle / Ivy

The newest version!
#include 
#include 
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/APInt.h"

#ifdef __cplusplus
extern "C" {
#endif

// Common Stubs

JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
    return (jint)sizeof(llvm::APSInt);
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2_nativeGetExtValue(JNIEnv*, jclass, jlong ptr) {
	return (jlong)(reinterpret_cast(ptr)->getExtValue());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2_nativeGetSExtValue(JNIEnv*, jclass, jlong ptr) {
	return (jlong)(reinterpret_cast(ptr)->getSExtValue());
}

JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2_nativeGetZExtValue(JNIEnv*, jclass, jlong ptr) {
	return (jlong)(reinterpret_cast(ptr)->getZExtValue());
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2_nativeIsNegative(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->isNegative()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2_nativeIsNonNegative(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->isNonNegative()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2_nativeIsSigned(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->isSigned()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2_nativeIsStrictlyPositive(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->isStrictlyPositive()) ? JNI_TRUE : JNI_FALSE;
}

JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_llvm_APSInt_1cxx_10xc3115fc2_nativeIsUnsigned(JNIEnv*, jclass, jlong ptr) {
	return (reinterpret_cast(ptr)->isUnsigned()) ? JNI_TRUE : JNI_FALSE;
}

#ifdef __cplusplus
}
#endif




© 2015 - 2024 Weber Informatics LLC | Privacy Policy