Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 186 for ffloat32 (0.14 sec)

  1. src/runtime/testdata/testprog/panicprint.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type MyBool bool
    type MyComplex128 complex128
    type MyComplex64 complex64
    type MyFloat32 float32
    type MyFloat64 float64
    type MyInt int
    type MyInt8 int8
    type MyInt16 int16
    type MyInt32 int32
    type MyInt64 int64
    type MyString string
    type MyUint uint
    type MyUint8 uint8
    type MyUint16 uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. test/codegen/math.go

    	// s390x:"MOV(B|BZ|D)\t[$]1,",-"FCMPU",-"MOV(B|BZ|D)\t[$]0,"
    	return float32(0.5) <= float32(int64(1)) && float32(1.5) >= float32(int32(-1<<31))
    }
    
    // Test that integer constants are converted to floating point constants
    // at compile-time
    
    func constantConvert32(x float32) float32 {
    	// amd64:"MOVSS\t[$]f32.3f800000\\(SB\\)"
    	// s390x:"FMOVS\t[$]f32.3f800000\\(SB\\)"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. src/encoding/xml/read_test.go

    	}
    }
    
    type ChildToEmbed struct {
    	X bool
    }
    
    type Parent struct {
    	I        int
    	IPtr     *int
    	Is       []int
    	IPtrs    []*int
    	F        float32
    	FPtr     *float32
    	Fs       []float32
    	FPtrs    []*float32
    	B        bool
    	BPtr     *bool
    	Bs       []bool
    	BPtrs    []*bool
    	Bytes    []byte
    	BytesPtr *[]byte
    	S        string
    	SPtr     *string
    	Ss       []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    	if ovf := V(float32(0)).OverflowFloat(maxFloat32); ovf {
    		t.Errorf("%v wrongly overflows float32", maxFloat32)
    	}
    	ovfFloat32 := float64((1<<24-1)<<(127-23) + 1<<(127-52))
    	if ovf := V(float32(0)).OverflowFloat(ovfFloat32); !ovf {
    		t.Errorf("%v should overflow float32", ovfFloat32)
    	}
    	if ovf := V(float32(0)).OverflowFloat(-ovfFloat32); !ovf {
    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/math/rand/v2/rand.go

    	return float64(r.Uint64()<<11>>11) / (1 << 53)
    }
    
    // Float32 returns, as a float32, a pseudo-random number in the half-open interval [0.0,1.0).
    func (r *Rand) Float32() float32 {
    	// There are exactly 1<<24 float32s in [0,1). Use Intn(1<<24) / (1<<24).
    	return float32(r.Uint32()<<8>>8) / (1 << 24)
    }
    
    // Perm returns, as a slice of n ints, a pseudo-random permutation of the integers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  6. test/codegen/floats.go

    	return x, y, z
    }
    
    func indexLoad(b0 []float32, b1 float32, idx int) float32 {
    	// arm64:`FMOVS\s\(R[0-9]+\)\(R[0-9]+<<2\),\sF[0-9]+`
    	return b0[idx] * b1
    }
    
    func indexStore(b0 []float64, b1 float64, idx int) {
    	// arm64:`FMOVD\sF[0-9]+,\s\(R[0-9]+\)\(R[0-9]+<<3\)`
    	b0[idx] = b1
    }
    
    // ----------- //
    //    Fused    //
    // ----------- //
    
    func FusedAdd32(x, y, z float32) float32 {
    	// s390x:"FMADDS\t"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/config.go

    	t.UInt8 = types.Types[types.TUINT8]
    	t.UInt16 = types.Types[types.TUINT16]
    	t.UInt32 = types.Types[types.TUINT32]
    	t.UInt64 = types.Types[types.TUINT64]
    	t.Int = types.Types[types.TINT]
    	t.Float32 = types.Types[types.TFLOAT32]
    	t.Float64 = types.Types[types.TFLOAT64]
    	t.UInt = types.Types[types.TUINT]
    	t.Uintptr = types.Types[types.TUINTPTR]
    	t.String = types.Types[types.TSTRING]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  8. src/go/types/builtins_test.go

    	{"max", `var x int    ; _ = max(0, x     )`, `func(int, int) int`},
    	{"max", `var x string ; _ = max("a", x   )`, `func(string, string) string`},
    	{"max", `var x float32; _ = max(0, 1.0, x)`, `func(float32, float32, float32) float32`},
    
    	{"min", `               _ = min(0        )`, `invalid type`}, // constant
    	{"min", `var x int    ; _ = min(x        )`, `func(int) int`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

                                          tf.constant(0, dtype=dtype))]
    
      expected = tf.constant([0, 0, 0, 0], dtype=tf.float32)
      tf.assert_equal(tf.cast(not_a_and_a, tf.float32), expected)
    
      expected = tf.cast([not_0] * 4, tf.float32)
      tf.assert_equal(tf.cast(not_a_or_a, tf.float32), expected)
    
      # For unsigned dtypes let's also check the result directly.
      if dtype.is_unsigned:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/decls0.go

    	A3 /* ERROR "invalid recursive type" */ [10]struct {
    		x A4
    	}
    	A4 [10]A3
    
    	F1 func()
    	F2 func(x, y, z float32)
    	F3 func(x, y, x /* ERROR "redeclared" */ float32)
    	F4 func() (x, y, x /* ERROR "redeclared" */ float32)
    	F5 func(x int) (x /* ERROR "redeclared" */ float32)
    	F6 func(x ...int)
    
    	I1 interface{}
    	I2 interface {
    		m1()
    	}
    	I3 interface {
    		m1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top