Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for floatRegs (0.11 sec)

  1. src/cmd/compile/internal/types/size.go

    		intRegs += uint64(typ.intRegs)
    		floatRegs += uint64(typ.floatRegs)
    	}
    
    	// Final size includes trailing padding.
    	size = RoundUp(size, int64(maxAlign))
    
    	if intRegs > math.MaxUint8 || floatRegs > math.MaxUint8 {
    		intRegs = math.MaxUint8
    		floatRegs = math.MaxUint8
    	}
    
    	t.width = size
    	t.align = maxAlign
    	t.intRegs = uint8(intRegs)
    	t.floatRegs = uint8(floatRegs)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  2. src/runtime/debug_test.go

    	fn := func(x int, y float64) (y0Ret int, y1Ret float64) {
    		return x + 1, y + 1.0
    	}
    	var args *stackArgs
    	var regs abi.RegArgs
    	intRegs := regs.Ints[:]
    	floatRegs := regs.Floats[:]
    	fval := float64(42.0)
    	if len(intRegs) > 0 {
    		intRegs[0] = 42
    		floatRegs[0] = math.Float64bits(fval)
    	} else {
    		args = &stackArgs{
    			x0: 42,
    			x1: 42.0,
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 15:08:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/type.go

    	t.extra = underlying.extra
    	t.width = underlying.width
    	t.align = underlying.align
    	t.alg = underlying.alg
    	t.ptrBytes = underlying.ptrBytes
    	t.intRegs = underlying.intRegs
    	t.floatRegs = underlying.floatRegs
    	t.underlying = underlying.underlying
    
    	if underlying.NotInHeap() {
    		t.SetNotInHeap(true)
    	}
    	if underlying.HasShape() {
    		t.SetHasShape(true)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    		c, d *byte
    	}
    
    	type test struct {
    		rcvr, typ                  Type
    		size, argsize, retOffset   uintptr
    		stack, gc, inRegs, outRegs []byte // pointer bitmap: 1 is pointer, 0 is scalar
    		intRegs, floatRegs         int
    		floatRegSize               uintptr
    	}
    	tests := []test{
    		{
    			typ:       ValueOf(func(a, b string) string { return "" }).Type(),
    			size:      6 * goarch.PtrSize,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  5. src/fmt/fmt_test.go

    	{"% d", []byte{1, 11, 111}, "[ 1  11  111]"},
    	{"%+d", [3]byte{1, 11, 111}, "[+1 +11 +111]"},
    	{"%# -6d", []byte{1, 11, 111}, "[ 1      11     111  ]"},
    	{"%#+-6d", [3]byte{1, 11, 111}, "[+1     +11    +111  ]"},
    
    	// floates with %v
    	{"%v", 1.2345678, "1.2345678"},
    	{"%v", float32(1.2345678), "1.2345678"},
    
    	// complexes with %v
    	{"%v", 1 + 2i, "(1+2i)"},
    	{"%v", complex64(1 + 2i), "(1+2i)"},
    
    	// structs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
Back to top