Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for TestMul (0.21 sec)

  1. test/fixedbugs/issue66066.go

    	}
    
    }
    
    //go:noinline
    func mul3(a uint32) uint64 {
    	return uint64(a * 3)
    }
    
    func testMul() {
    	got := mul3(1<<32 - 1)
    	want := uint64((1<<32-1)*3 - 2<<32)
    	if got != want {
    		fmt.Printf("testMul: got %x want %x\n", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 677 bytes
    - Viewed (0)
  2. src/crypto/aes/aes_test.go

    		}
    
    		// i *= x in GF(2) modulo the polynomial
    		i <<= 1
    		if i&0x100 != 0 {
    			i ^= poly
    		}
    	}
    	return s
    }
    
    // Test all mul inputs against bit-by-bit n² algorithm.
    func TestMul(t *testing.T) {
    	for i := uint32(0); i < 256; i++ {
    		for j := uint32(0); j < 256; j++ {
    			// Multiply i, j bit by bit.
    			s := uint8(0)
    			for k := uint(0); k < 8; k++ {
    				for l := uint(0); l < 8; l++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    }
    
    func checkMul(a, b []byte) bool {
    	var x, y, z1 Int
    	x.SetBytes(a)
    	y.SetBytes(b)
    	z1.Mul(&x, &y)
    
    	var z2 Int
    	z2.SetBytes(mulBytes(a, b))
    
    	return z1.Cmp(&z2) == 0
    }
    
    func TestMul(t *testing.T) {
    	if err := quick.Check(checkMul, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    var mulRangesZ = []struct {
    	a, b int64
    	prod string
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	for i, test := range tests {
    		test.a.Add(test.b)
    		if test.a.Cmp(test.expected) != 0 {
    			t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), test.a.String())
    		}
    	}
    }
    
    func TestMul(t *testing.T) {
    	tests := []struct {
    		a        Quantity
    		b        int64
    		expected Quantity
    		ok       bool
    	}{
    		{decQuantity(10, 0, DecimalSI), 10, decQuantity(100, 0, DecimalSI), true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/ops.mlir

      %0 = tfl.sub %arg0, %arg1 {fused_activation_function = "RELU6"} : tensor<? x i64>
      func.return %0#0 : tensor<? x i64>
    }
    
    // CHECK-LABEL: testMul
    func.func @testMul(tensor<? x i32>, tensor<? x i32>) -> tensor<? x i32> {
    ^bb0(%arg0: tensor<? x i32>, %arg1: tensor<? x i32>):
      // CHECK: tfl.mul %arg0, %arg1 {fused_activation_function = "RELU6"}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      func.return %0 : tensor<4x1xcomplex<f32>>
    }
    
    // -----
    
    // CHECK-LABEL: func @testMul
    func.func @testMul(%arg0: tensor<2xui16>) -> (tensor<2xui16>) {
      %0 = "tf.Mul"(%arg0, %arg0) {T = "tfdtype$DT_UINT16", device = "/device:CPU:0", name = "Mul"} : (tensor<2xui16>, tensor<2xui16>) -> tensor<2xui16>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/routes/openapi.go

    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package routes
    
    import (
    	restful "github.com/emicklei/go-restful/v3"
    	"k8s.io/klog/v2"
    
    	"k8s.io/apiserver/pkg/server/mux"
    	builder2 "k8s.io/kube-openapi/pkg/builder"
    	"k8s.io/kube-openapi/pkg/builder3"
    	"k8s.io/kube-openapi/pkg/common"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 16 19:05:13 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server.go

    	KeyFile  string
    }
    
    // containerInterface defines the restful.Container functions used on the root container
    type containerInterface interface {
    	Add(service *restful.WebService) *restful.Container
    	Handle(path string, handler http.Handler)
    	Filter(filter restful.FilterFunction)
    	ServeHTTP(w http.ResponseWriter, r *http.Request)
    	RegisteredWebServices() []*restful.WebService
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/endpoints/installer.go

    	return func(req *restful.Request, res *restful.Response) {
    		handlers.DeleteCollection(r, checkBody, &scope, admit)(res.ResponseWriter, req.Request)
    	}
    }
    
    func restfulUpdateResource(r rest.Updater, scope handlers.RequestScope, admit admission.Interface) restful.RouteFunction {
    	return func(req *restful.Request, res *restful.Response) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 18:15:22 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  10. pkg/kubelet/server/stats/handler.go

    func CreateHandlers(rootPath string, provider Provider, summaryProvider SummaryProvider) *restful.WebService {
    	h := &handler{provider, summaryProvider}
    
    	ws := &restful.WebService{}
    	ws.Path(rootPath).
    		Produces(restful.MIME_JSON)
    
    	endpoints := []struct {
    		path    string
    		handler restful.RouteFunction
    	}{
    		{"/summary", h.handleSummary},
    	}
    
    	for _, e := range endpoints {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Dec 14 21:31:38 UTC 2023
    - 6.8K bytes
    - Viewed (0)
Back to top