Skip to content

Commit

Permalink
Removed linker options
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHua269 committed Dec 14, 2024
1 parent eeae6bc commit b1c6c29
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions patches/server/0051-C2ME-Native-math-noise-optimizations.patch
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ index 0000000000000000000000000000000000000000..e94fbc2afcca53465889822eee41e9df
+}
diff --git a/src/main/java/com/ishland/c2me/opts/natives_math/common/BindingsTemplate.java b/src/main/java/com/ishland/c2me/opts/natives_math/common/BindingsTemplate.java
new file mode 100644
index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8cadc3e2e
index 0000000000000000000000000000000000000000..703ded0cbe1e2b3d2cd6076da509d8bcf4a97ef7
--- /dev/null
+++ b/src/main/java/com/ishland/c2me/opts/natives_math/common/BindingsTemplate.java
@@ -0,0 +1,408 @@
Expand Down Expand Up @@ -172,8 +172,8 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+
+ // c2me_natives_noise_perlin_double, double, (const double_octave_sampler_data_t *data, double x, double y, double z)
Expand All @@ -184,8 +184,8 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+ public static final MethodHandle c2me_natives_noise_perlin_double_ptr = NativeLoader.linker.downcallHandle(
+ FunctionDescriptor.of(
Expand All @@ -194,8 +194,8 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+
+ // c2me_natives_noise_perlin_double_batch, void, (const double_octave_sampler_data_t *const data,
Expand All @@ -210,8 +210,8 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.ADDRESS,
+ ValueLayout.ADDRESS,
+ ValueLayout.JAVA_INT
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+ public static final MethodHandle c2me_natives_noise_perlin_double_batch_ptr = NativeLoader.linker.downcallHandle(
+ FunctionDescriptor.ofVoid(
Expand All @@ -221,8 +221,8 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.ADDRESS,
+ ValueLayout.ADDRESS,
+ ValueLayout.JAVA_INT
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+
+
Expand Down Expand Up @@ -329,8 +329,8 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+ public static final MethodHandle c2me_natives_noise_interpolated_ptr = NativeLoader.linker.downcallHandle(
+ FunctionDescriptor.of(
Expand All @@ -339,8 +339,8 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE,
+ ValueLayout.JAVA_DOUBLE
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+
+ // typedef const struct interpolated_noise_sub_sampler {
Expand Down Expand Up @@ -526,17 +526,17 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.ADDRESS,
+ ValueLayout.JAVA_INT,
+ ValueLayout.JAVA_INT
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+ public static final MethodHandle c2me_natives_end_islands_sample_ptr = NativeLoader.linker.downcallHandle(
+ FunctionDescriptor.of(
+ ValueLayout.JAVA_FLOAT,
+ ValueLayout.JAVA_LONG,
+ ValueLayout.JAVA_INT,
+ ValueLayout.JAVA_INT
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+
+ // c2me_natives_biome_access_sample, uint32_t, (const int64_t theSeed, const int32_t x, const int32_t y, const int32_t z)
Expand All @@ -547,8 +547,8 @@ index 0000000000000000000000000000000000000000..015487ba22ac953e4612bef900d876e8
+ ValueLayout.JAVA_INT,
+ ValueLayout.JAVA_INT,
+ ValueLayout.JAVA_INT
+ ),
+ Linker.Option.critical(true)
+ )//,
+ //Linker.Option.critical(true)
+ );
+
+}
Expand Down

0 comments on commit b1c6c29

Please sign in to comment.