go arith_s390x_test 源码

  • 2022-07-15
  • 浏览 (1067)

golang arith_s390x_test 代码

文件路径:/src/math/big/arith_s390x_test.go

// Copyright 2016 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.

//go:build s390x && !math_big_pure_go
// +build s390x,!math_big_pure_go

package big

import (
	"testing"
)

// Tests whether the non vector routines are working, even when the tests are run on a
// vector-capable machine

func TestFunVVnovec(t *testing.T) {
	if hasVX == true {
		for _, a := range sumVV {
			arg := a
			testFunVV(t, "addVV_novec", addVV_novec, arg)

			arg = argVV{a.z, a.y, a.x, a.c}
			testFunVV(t, "addVV_novec symmetric", addVV_novec, arg)

			arg = argVV{a.x, a.z, a.y, a.c}
			testFunVV(t, "subVV_novec", subVV_novec, arg)

			arg = argVV{a.y, a.z, a.x, a.c}
			testFunVV(t, "subVV_novec symmetric", subVV_novec, arg)
		}
	}
}

相关信息

go 源码目录

相关文章

go accuracy_string 源码

go alias_test 源码

go arith 源码

go arith_amd64 源码

go arith_decl 源码

go arith_decl_pure 源码

go arith_decl_s390x 源码

go arith_test 源码

go bits_test 源码

go calibrate_test 源码

0  赞