Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for immfloat (0.36 sec)

  1. src/cmd/internal/obj/arm/asm5.go

    				a.Reg = obj.REG_NONE
    			}
    			c.instoffset = c.autosize + a.Offset
    			if t := immaddr(int32(c.instoffset)); t != 0 {
    				if immhalf(int32(c.instoffset)) {
    					if immfloat(t) {
    						return C_HFAUTO
    					}
    					return C_HAUTO
    				}
    
    				if immfloat(t) {
    					return C_FAUTO
    				}
    				return C_SAUTO
    			}
    
    			return C_LAUTO
    
    		case obj.NAME_PARAM:
    			if a.Reg == REGSP {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 20:51:01 UTC 2023
    - 79.4K bytes
    - Viewed (0)
  2. test/typeparam/typeswitch3.go

    	case myint:
    		println("myint", x.foo())
    	default:
    		println("other", x.foo())
    	}
    }
    func main() {
    	f[myfloat](myint(6))
    	f[myfloat](myfloat(7))
    	f[myfloat](myint32(8))
    	f[myint32](myint32(8))
    	f[myint32](myfloat(7))
    	f[myint](myint32(9))
    	f[I](myint(10))
    	f[J](myint(11))
    	f[J](myint32(12))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 837 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/basic.go

    type BasicInfo int
    
    // Properties of basic types.
    const (
    	IsBoolean BasicInfo = 1 << iota
    	IsInteger
    	IsUnsigned
    	IsFloat
    	IsComplex
    	IsString
    	IsUntyped
    
    	IsOrdered   = IsInteger | IsFloat | IsString
    	IsNumeric   = IsInteger | IsFloat | IsComplex
    	IsConstType = IsBoolean | IsNumeric | IsString
    )
    
    // A Basic represents a basic type.
    type Basic struct {
    	kind BasicKind
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  4. test/named.go

    	asChan(Chan(nil))
    	isChan(Chan(nil))
    
    	asFloat(f)
    	isFloat(f)
    	asFloat(-f)
    	isFloat(-f)
    	asFloat(+f)
    	isFloat(+f)
    	asFloat(f + 1)
    	isFloat(f + 1)
    	asFloat(1 + f)
    	isFloat(1 + f)
    	asFloat(f + f)
    	isFloat(f + f)
    	f++
    	f += 2
    	asFloat(f - 1)
    	isFloat(f - 1)
    	asFloat(1 - f)
    	isFloat(1 - f)
    	asFloat(f - f)
    	isFloat(f - f)
    	f--
    	f -= 2
    	asFloat(f * 2.5)
    	isFloat(f * 2.5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  5. test/typeparam/typeswitch4.go

    func (x myint) foo() int { return int(x) }
    
    type myfloat float64
    
    func (x myfloat) foo() int { return int(x) }
    
    type myint32 int32
    
    func (x myint32) foo() int { return int(x) }
    func (x myint32) bar()     {}
    
    func f[T I](i I) {
    	switch x := i.(type) {
    	case T, myint32:
    		println("T/myint32", x.foo())
    	default:
    		println("other", x.foo())
    	}
    }
    func main() {
    	f[myfloat](myint(6))
    	f[myfloat](myfloat(7))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 813 bytes
    - Viewed (0)
  6. test/typeparam/typeswitch7.go

    		println("barT")
    	case myint:
    		println("myint")
    	case myfloat:
    		println("myfloat")
    	default:
    		println("other")
    	}
    }
    
    type myint int
    func (myint) foo() {
    }
    func (x myint) bar() int {
    	return int(x)
    }
    
    type myfloat float64
    func (myfloat) foo() {
    }
    
    func main() {
    	f[int](nil)
    	f[int](myint(6))
    	f[int](myfloat(7))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 581 bytes
    - Viewed (0)
  7. test/typeparam/typeswitch5.go

    func (x myint) foo() int {return int(x)}
    
    type myfloat float64
    func (x myfloat) foo() float64 {return float64(x) }
    
    func f[T any](i interface{}) {
    	switch x := i.(type) {
    	case interface { foo() T }:
    		println("fooer", x.foo())
    	default:
    		println("other")
    	}
    }
    func main() {
    	f[int](myint(6))
    	f[int](myfloat(7))
    	f[float64](myint(8))
    	f[float64](myfloat(9))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 559 bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue49179.go

    func f1[P int | string]()            {}
    func f2[P ~int | string | float64]() {}
    func f3[P int](x P)                  {}
    
    type myInt int
    type myFloat float64
    
    func _() {
    	_ = f1[int]
    	_ = f1[myInt /* ERROR "possibly missing ~ for int in int | string" */]
    	_ = f2[myInt]
    	_ = f2[myFloat /* ERROR "possibly missing ~ for float64 in ~int | string | float64" */]
    	var x myInt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 964 bytes
    - Viewed (0)
  9. test/typeparam/dottype.go

    	return x.(T)
    }
    func f2[T any](x interface{}) (T, bool) {
    	t, ok := x.(T)
    	return t, ok
    }
    
    type I interface {
    	foo()
    }
    
    type myint int
    
    func (myint) foo() {
    }
    
    type myfloat float64
    
    func (myfloat) foo() {
    }
    
    func g[T I](x I) T {
    	return x.(T)
    }
    func g2[T I](x I) (T, bool) {
    	t, ok := x.(T)
    	return t, ok
    }
    
    func h[T any](x interface{}) struct{ a, b T } {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. src/fmt/print.go

    		p.badVerb(verb)
    	}
    }
    
    // fmtFloat formats a float. The default precision for each verb
    // is specified as last argument in the call to fmt_float.
    func (p *pp) fmtFloat(v float64, size int, verb rune) {
    	switch verb {
    	case 'v':
    		p.fmt.fmtFloat(v, size, 'g', -1)
    	case 'b', 'g', 'G', 'x', 'X':
    		p.fmt.fmtFloat(v, size, verb, -1)
    	case 'f', 'e', 'E':
    		p.fmt.fmtFloat(v, size, verb, 6)
    	case 'F':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
Back to top