From c15984c6c67205a19382ba350680dcfb0090325a Mon Sep 17 00:00:00 2001 From: Ilya Tocar Date: Thu, 1 Mar 2018 12:30:19 -0600 Subject: [PATCH] math: remove unused variable useSSE41 was used inside asm implementation of floor to select between base and ss4 code path. We intrinsified floor and left asm functions as a backup for non-sse4 systems. This made variable unused, so remove it. Change-Id: Ia2633de7c7cb1ef1d5b15a2366b523e481b722d9 Reviewed-on: https://go-review.googlesource.com/97935 Run-TryBot: Ilya Tocar Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/math/floor_asm.go | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/math/floor_asm.go diff --git a/src/math/floor_asm.go b/src/math/floor_asm.go deleted file mode 100644 index fdec112cef..0000000000 --- a/src/math/floor_asm.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2015 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build amd64 amd64p32 - -package math - -import "internal/cpu" - -var useSSE41 = cpu.X86.HasSSE41 -- 2.48.1