Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,057 for float2 (0.22 sec)

  1. src/cmd/compile/internal/ssa/_gen/WasmOps.go

    		{name: "F32Add", asm: "F32Add", argLength: 2, reg: fp32_21, typ: "Float32"}, // arg0 + arg1
    		{name: "F32Sub", asm: "F32Sub", argLength: 2, reg: fp32_21, typ: "Float32"}, // arg0 - arg1
    		{name: "F32Mul", asm: "F32Mul", argLength: 2, reg: fp32_21, typ: "Float32"}, // arg0 * arg1
    		{name: "F32Div", asm: "F32Div", argLength: 2, reg: fp32_21, typ: "Float32"}, // arg0 / arg1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  2. test/fixedbugs/issue11945.go

    	_ int = real(2.0)
    	_ int = real(3i)
    
    	_ float32 = real(1)
    	_ float32 = real('a')
    	_ float32 = real(2.1)
    	_ float32 = real(3.2i)
    
    	_ float64 = real(1)
    	_ float64 = real('a')
    	_ float64 = real(2.1)
    	_ float64 = real(3.2i)
    
    	_ int = imag(1)
    	_ int = imag('a')
    	_ int = imag(2.1 + 3i)
    	_ int = imag(3i)
    
    	_ float32 = imag(1)
    	_ float32 = imag('a')
    	_ float32 = imag(2.1 + 3.1i)
    	_ float32 = imag(3i)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 26 01:50:30 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  3. api/go1.5.txt

    pkg math/big, method (*Float) Mode() RoundingMode
    pkg math/big, method (*Float) Mul(*Float, *Float) *Float
    pkg math/big, method (*Float) Neg(*Float) *Float
    pkg math/big, method (*Float) Parse(string, int) (*Float, int, error)
    pkg math/big, method (*Float) Prec() uint
    pkg math/big, method (*Float) Quo(*Float, *Float) *Float
    pkg math/big, method (*Float) Rat(*Rat) (*Rat, Accuracy)
    pkg math/big, method (*Float) Set(*Float) *Float
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  4. src/go/types/builtins_test.go

    	{"complex", `_ = complex(1, 0)`, `invalid type`}, // constant
    	{"complex", `var re float32; _ = complex(re, 1.0)`, `func(float32, float32) complex64`},
    	{"complex", `var im float64; _ = complex(1, im)`, `func(float64, float64) complex128`},
    	{"complex", `type F32 float32; var re, im F32; _ = complex(re, im)`, `func(p.F32, p.F32) complex64`},
    	{"complex", `type F64 float64; var re, im F64; _ = complex(re, im)`, `func(p.F64, p.F64) complex128`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. src/internal/fuzz/encoding.go

    		}
    		return parseUint(val, typ)
    	case "float32":
    		if kind != token.FLOAT && kind != token.INT {
    			return nil, fmt.Errorf("float or integer literal required for float32 type")
    		}
    		v, err := strconv.ParseFloat(val, 32)
    		return float32(v), err
    	case "float64":
    		if kind != token.FLOAT && kind != token.INT {
    			return nil, fmt.Errorf("float or integer literal required for float64 type")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

        }
        return false;
      }
    
      // Insert CastOp which is used to for converting float32 ConstantOp into
      // float16 quantization. If there is an existing CastOp connected to the
      // ConstantOp, the quantize_op will be rewired to the existing CastOp. This
      // guarantees at most one CastOp is created for float32 to float16 conversion.
      void quantizeOpAsFloat16(PatternRewriter& rewriter, arith::ConstantOp op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. test/cmplx.go

    // Verify that incorrect invocations of the complex predeclared function are detected.
    // Does not compile.
    
    package main
    
    type (
    	Float32    float32
    	Float64    float64
    	Complex64  complex64
    	Complex128 complex128
    )
    
    var (
    	f32 float32
    	f64 float64
    	F32 Float32
    	F64 Float64
    
    	c64  complex64
    	c128 complex128
    	C64  Complex64
    	C128 Complex128
    )
    
    func F1() int {
    	return 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 21:00:20 UTC 2019
    - 1.4K bytes
    - Viewed (0)
  8. src/database/sql/convert.go

    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		return strconv.FormatUint(rv.Uint(), 10)
    	case reflect.Float64:
    		return strconv.FormatFloat(rv.Float(), 'g', -1, 64)
    	case reflect.Float32:
    		return strconv.FormatFloat(rv.Float(), 'g', -1, 32)
    	case reflect.Bool:
    		return strconv.FormatBool(rv.Bool())
    	}
    	return fmt.Sprintf("%v", src)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  9. src/reflect/value.go

    }
    
    // CanFloat reports whether [Value.Float] can be used without panicking.
    func (v Value) CanFloat() bool {
    	switch v.kind() {
    	case Float32, Float64:
    		return true
    	default:
    		return false
    	}
    }
    
    // Float returns v's underlying value, as a float64.
    // It panics if v's Kind is not [Float32] or [Float64]
    func (v Value) Float() float64 {
    	k := v.kind()
    	switch k {
    	case Float32:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  10. src/database/sql/driver/types.go

    	case reflect.Uint64:
    		u64 := rv.Uint()
    		if u64 >= 1<<63 {
    			return nil, fmt.Errorf("uint64 values with high bit set are not supported")
    		}
    		return int64(u64), nil
    	case reflect.Float32, reflect.Float64:
    		return rv.Float(), nil
    	case reflect.Bool:
    		return rv.Bool(), nil
    	case reflect.Slice:
    		ek := rv.Type().Elem().Kind()
    		if ek == reflect.Uint8 {
    			return rv.Bytes(), nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top