Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for MULT (0.07 sec)

  1. src/cmd/compile/internal/test/testdata/pgo/devirtualize/mult.pkg/mult.go

    // license that can be found in the LICENSE file.
    
    // WARNING: Please avoid updating this file.
    // See the warning in ../devirt.go for more details.
    
    package mult
    
    var sink int
    
    type Multiplier interface {
    	Multiply(a, b int) int
    }
    
    type Mult struct{}
    
    func (Mult) Multiply(a, b int) int {
    	for i := 0; i < 1000; i++ {
    		sink++
    	}
    	return a * b
    }
    
    type NegMult struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:57 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt.pprof.node_map

    example.com/pgo/devirtualize.ExerciseFuncField
    example.com/pgo/devirtualize/mult%2epkg.MultFn
    23 94
    example.com/pgo/devirtualize.ExerciseFuncClosure
    example.com/pgo/devirtualize/mult%2epkg.MultClosure.func1
    18 93
    example.com/pgo/devirtualize.ExerciseFuncClosure
    example.com/pgo/devirtualize.Add.Add
    18 92
    example.com/pgo/devirtualize.ExerciseFuncConcrete
    example.com/pgo/devirtualize/mult%2epkg.MultFn
    48 91
    example.com/pgo/devirtualize.ExerciseIface
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/pgo_devirtualize_test.go

    	// Copy the module to a scratch location so we can add a go.mod.
    	dir := t.TempDir()
    	if err := os.Mkdir(filepath.Join(dir, "mult.pkg"), 0755); err != nil {
    		t.Fatalf("error creating dir: %v", err)
    	}
    	for _, file := range []string{"devirt.go", "devirt_test.go", profFileName, filepath.Join("mult.pkg", "mult.go")} {
    		if err := copyFile(filepath.Join(dir, file), filepath.Join(srcDir, file)); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:30:35 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt_test.go

    	ExerciseFuncConcrete(b.N, AddFn, SubFn, mult.MultFn, mult.NegMultFn)
    }
    
    func TestDevirtFuncConcrete(t *testing.T) {
    	if v := ExerciseFuncConcrete(10, AddFn, SubFn, mult.MultFn, mult.NegMultFn); v != 1176 {
    		t.Errorf("ExerciseFuncConcrete(10) got %d want 1176", v)
    	}
    }
    
    func BenchmarkDevirtFuncField(b *testing.B) {
    	ExerciseFuncField(b.N, AddFn, SubFn, mult.MultFn, mult.NegMultFn)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:47 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/pgo/devirtualize/devirt.go

    //
    // This is a simplified version of ExerciseFuncConcrete, but accessing the
    // function values via a struct field.
    //
    //go:noinline
    func ExerciseFuncField(iter int, a1, a2 AddFunc, m1, m2 mult.MultFunc) int {
    	ops := struct {
    		a AddFunc
    		m mult.MultFunc
    	}{}
    
    	val := 0
    	for i := 0; i < iter; i++ {
    		ops.a = a1
    		ops.m = m1
    		if i%10 == 0 {
    			ops.a = a2
    			ops.m = m2
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 18:17:57 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. test/fixedbugs/bug287.go

    // Copyright 2010 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.
    
    // Used to die dividing by zero; issue 879.
    
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 289 bytes
    - Viewed (0)
  7. src/main/resources/fess_indices/fess/ro/stopwords.txt

    înaintea
    încât
    încît
    încotro
    între
    întrucât
    întrucît
    îţi
    la
    lângă
    le
    li
    lîngă
    lor
    lui
    mă
    mâine
    mea
    mei
    mele
    mereu
    meu
    mi
    mine
    mult
    multă
    mulţi
    ne
    nicăieri
    nici
    nimeni
    nişte
    noastră
    noastre
    noi
    noştri
    nostru
    nu
    ori
    oricând
    oricare
    oricât
    orice
    oricînd
    oricine
    oricît
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Jul 19 06:31:02 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  8. src/crypto/internal/edwards25519/field/fe_test.go

    	b := uint64(5)
    	r := mul64(a, b)
    	if r.lo != 0x19 || r.hi != 0 {
    		t.Errorf("lo-range wide mult failed, got %d + %d*(2**64)", r.lo, r.hi)
    	}
    
    	a = uint64(18014398509481983) // 2^54 - 1
    	b = uint64(18014398509481983) // 2^54 - 1
    	r = mul64(a, b)
    	if r.lo != 0xff80000000000001 || r.hi != 0xfffffffffff {
    		t.Errorf("hi-range wide mult failed, got %d + %d*(2**64)", r.lo, r.hi)
    	}
    
    	a = uint64(1125899906842661)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  9. src/runtime/mgcpacer_test.go

    		}
    		return sum
    	}
    }
    
    // quantize returns a new stream that rounds f to a multiple
    // of mult at each step.
    func (f float64Stream) quantize(mult float64) float64Stream {
    	return func() float64 {
    		r := f() / mult
    		if r < 0 {
    			return math.Ceil(r) * mult
    		}
    		return math.Floor(r) * mult
    	}
    }
    
    // min returns a new stream that replaces all values produced
    // by f lower than min with min.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 13:53:21 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/MIPSOps.go

    		{name: "MUL", argLength: 2, reg: regInfo{inputs: []regMask{gpg, gpg}, outputs: []regMask{gp}, clobbers: hi | lo}, asm: "MUL", commutative: true}, // arg0 * arg1
    		{name: "MULT", argLength: 2, reg: gp2hilo, asm: "MUL", commutative: true, typ: "(Int32,Int32)"},                                                  // arg0 * arg1, signed, results hi,lo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 24K bytes
    - Viewed (0)
Back to top