astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_APFloat_cxx_0x9e7351d6.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/ADT/APFloat.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_APFloat_1cxx_10x9e7351d6__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::APFloat);
}
JNIEXPORT
jdouble JNICALL Java_com_alibaba_fastffi_llvm_APFloat_1cxx_10x9e7351d6_nativeConvertToDouble(JNIEnv*, jclass, jlong ptr) {
return (jdouble)(reinterpret_cast(ptr)->convertToDouble());
}
JNIEXPORT
jfloat JNICALL Java_com_alibaba_fastffi_llvm_APFloat_1cxx_10x9e7351d6_nativeConvertToFloat(JNIEnv*, jclass, jlong ptr) {
return (jfloat)(reinterpret_cast(ptr)->convertToFloat());
}
#ifdef __cplusplus
}
#endif