From 4aebc135bcf4fa12ad73b42e7fc751ee29c40a4a Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Thu, 22 Oct 2020 10:53:14 +0100 Subject: [PATCH] Fix base unpremultiply benchmark --- tests/ImageSharp.Benchmarks/Color/Bulk/UnPremultiplyVector4.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ImageSharp.Benchmarks/Color/Bulk/UnPremultiplyVector4.cs b/tests/ImageSharp.Benchmarks/Color/Bulk/UnPremultiplyVector4.cs index 89e055da4..1312c767b 100644 --- a/tests/ImageSharp.Benchmarks/Color/Bulk/UnPremultiplyVector4.cs +++ b/tests/ImageSharp.Benchmarks/Color/Bulk/UnPremultiplyVector4.cs @@ -36,7 +36,7 @@ namespace SixLabors.ImageSharp.Benchmarks.ColorSpaces.Bulk private static void UnPremultiply(ref Vector4 source) { float w = source.W; - source *= w; + source /= w; source.W = w; }