Browse Source

Fix vectorized cube root on x86-64 with no SSE41

js/color-alpha-handling
Sergio Pedri 6 years ago
parent
commit
392afeadef
  1. 5
      src/ImageSharp/Common/Helpers/Numerics.cs

5
src/ImageSharp/Common/Helpers/Numerics.cs

@ -631,7 +631,9 @@ namespace SixLabors.ImageSharp
return; return;
} }
#else #endif
// Fallback with scalar preprocessing and vectorized approximation steps
for (int x = 0; x < length; x++) for (int x = 0; x < length; x++)
{ {
ref Vector4 v = ref Unsafe.Add(ref vectorsRef, x); ref Vector4 v = ref Unsafe.Add(ref vectorsRef, x);
@ -671,7 +673,6 @@ namespace SixLabors.ImageSharp
v = y4; v = y4;
} }
#endif
} }
} }
} }

Loading…
Cancel
Save