Browse Source

Oops, actually enable SIMD

ssao
A.Olokhtonov 8 months ago
parent
commit
37ff1e55bc
  1. 2
      client/wasm/lod.c
  2. BIN
      client/wasm/lod.wasm

2
client/wasm/lod.c

@ -62,7 +62,7 @@ rdp_find_max(float *xs, float *ys, unsigned char *pressures, float zoom, int coo @@ -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];

BIN
client/wasm/lod.wasm

Binary file not shown.
Loading…
Cancel
Save