Skip to content

Commit

Permalink
Sulong: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Palez committed Feb 24, 2023
1 parent 6156c47 commit 949a120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected LLVM128BitFloat fromDouble(double value) {

@Specialization(limit = "1", guards = "serialize.isSerializable(value)")
protected LLVM128BitFloat from128BitFloat(Object value,
@CachedLibrary("value") SerializableLibrary serialize) {
@CachedLibrary("value") SerializableLibrary serialize) {
try {
// this is an FP128 value from the NFI, we have to serialize it
byte[] buffer = new byte[16];
Expand All @@ -96,7 +96,6 @@ protected LLVM128BitFloat from128BitFloat(Object value,
}
}


@CompilerDirectives.TruffleBoundary
static LLVM128BitFloat slowPathPrimitiveConvert(Object value) throws UnsupportedTypeException {
try {
Expand Down
4 changes: 1 addition & 3 deletions truffle/src/com.oracle.truffle.nfi.native/src/jni.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,10 @@ JNIEXPORT jlong JNICALL Java_com_oracle_truffle_nfi_backend_libffi_LibFFIContext
#endif


#if defined(__aarch64__) || defined(_M_ARM64)
#if defined(__aarch64__) || defined(_M_ARM64)
cacheFFIType(env, NativeSimpleType, context, initializeSimpleType, "FP128", &ffi_type_longdouble);
#endif



cacheFFIType(env, NativeSimpleType, context, initializeSimpleType, "STRING", &ffi_type_pointer);
cacheFFIType(env, NativeSimpleType, context, initializeSimpleType, "OBJECT", &ffi_type_pointer);
cacheFFIType(env, NativeSimpleType, context, initializeSimpleType, "NULLABLE", &ffi_type_pointer);
Expand Down

0 comments on commit 949a120

Please sign in to comment.