astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_APInt_cxx_0xd4be5de9.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/ADT/APInt.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_APInt_1cxx_10xd4be5de9__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::APInt);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_APInt_1cxx_10xd4be5de9_nativeGetSExtValue(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast(ptr)->getSExtValue());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_APInt_1cxx_10xd4be5de9_nativeGetZExtValue(JNIEnv*, jclass, jlong ptr) {
return (jlong)(reinterpret_cast(ptr)->getZExtValue());
}
#ifdef __cplusplus
}
#endif