From 37ff1e55bc4035e9aad91d9974d41bb0c7c3f787 Mon Sep 17 00:00:00 2001 From: "A.Olokhtonov" Date: Fri, 22 Mar 2024 13:34:15 +0300 Subject: [PATCH] Oops, actually enable SIMD --- client/wasm/lod.c | 2 +- client/wasm/lod.wasm | Bin 1779 -> 2295 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/client/wasm/lod.c b/client/wasm/lod.c index 28421fc..93d492d 100644 --- a/client/wasm/lod.c +++ b/client/wasm/lod.c @@ -62,7 +62,7 @@ rdp_find_max(float *xs, float *ys, unsigned char *pressures, float zoom, int coo float dist_ab = __builtin_sqrtf(dx * dx + dy * dy); float dir_nx = dy / dist_ab * 255.0f; float dir_ny = -dx / dist_ab * 255.0f; -#if 1 +#if 0 for (int i = segment_start + 1; i < segment_end; ++i) { float px = xs[coords_from + i]; float py = ys[coords_from + i]; diff --git a/client/wasm/lod.wasm b/client/wasm/lod.wasm index 3f921f67d489ff6c588c9350d064f27489403d5d..1c62b2f84e4340d3be32f3cc5bf58eb4f4a069bd 100755 GIT binary patch literal 2295 zcmZuyNpllN6z-lG$(lu*ZERy3c-?FU;}!76=3z^UN>QoYLCBV{-I6UL$puu3k`ElH zBnJY{J?9)!mE_0dngiiaq^6SZ_1IKGGAecVTe{zS-}`z-R6E;J2qA~uM?yT3J=uHY z_j)gS_K`ieFUwZxWLznn?2Vu&tdDZ*FQtIcL*z1wPcga{wE>-9>fTkUSG3mI9d_I#(h4bh3<*jhidx?!cV zS+72+tW`U8SLRdWp|h8*wJOb4O=O}6CC* zN#5~RBN>v6ovuD{uz%RZp3z4s$4WA4^dRJzJxd34)TkraBKUuAOdY2THYi0|o-_qC zY}EKIP~bW_-(&9G+Sl{RfVvV36}YQ3M91%Xt2A!I8VXPeEFRYo#BNvnGzu-EW3*+C z+Q{S^)lb7DDQ8k+95qe64+PWz9ko74Y?#Q<36qLLIJk^|9%0J}n|Bem%!L&V!v)U@9Q4!@32a!G<(-<2H7?Edqg_#D7Dxi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