Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for fma (0.12 sec)

  1. src/cmd/compile/internal/ssa/fmahash_test.go

    	}
    
    	testenv.MustHaveGoBuild(t)
    	gocmd := testenv.GoToolPath(t)
    	tmpdir := t.TempDir()
    	source := filepath.Join("testdata", "fma.go")
    	output := filepath.Join(tmpdir, "fma.exe")
    	cmd := testenv.Command(t, gocmd, "build", "-o", output, source)
    	// The hash-dependence on file path name is dodged by specifying "all hashes ending in 1" plus "all hashes ending in 0"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 21:57:53 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. test/codegen/math.go

    	sink64[3] = math.Copysign(-1, c)
    }
    
    func fma(x, y, z float64) float64 {
    	// amd64/v3:-".*x86HasFMA"
    	// amd64:"VFMADD231SD"
    	// arm/6:"FMULAD"
    	// arm64:"FMADDD"
    	// s390x:"FMADD"
    	// ppc64x:"FMADD"
    	// riscv64:"FMADDD"
    	return math.FMA(x, y, z)
    }
    
    func fms(x, y, z float64) float64 {
    	// riscv64:"FMSUBD"
    	return math.FMA(x, y, -z)
    }
    
    func fnms(x, y, z float64) float64 {
    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/internal/cpu/cpu_x86.go

    			option{Name: "avx", Feature: &X86.HasAVX},
    			option{Name: "avx2", Feature: &X86.HasAVX2},
    			option{Name: "bmi1", Feature: &X86.HasBMI1},
    			option{Name: "bmi2", Feature: &X86.HasBMI2},
    			option{Name: "fma", Feature: &X86.HasFMA})
    	}
    	if level < 4 {
    		// These options are required at level 4. At lower levels
    		// they can be turned off.
    		options = append(options,
    			option{Name: "avx512f", Feature: &X86.HasAVX512F},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:20 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/config.go

    	SoftFloat      bool        //
    	Race           bool        // race detector enabled
    	BigEndian      bool        //
    	UseFMA         bool        // Use hardware FMA operation
    	unalignedOK    bool        // Unaligned loads/stores are ok
    	haveBswap64    bool        // architecture implements Bswap64
    	haveBswap32    bool        // architecture implements Bswap32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. src/internal/bisect/bisect.go

    func New(pattern string) (*Matcher, error) {
    	if pattern == "" {
    		return nil, nil
    	}
    
    	m := new(Matcher)
    
    	p := pattern
    	// Special case for leading 'q' so that 'qn' quietly disables, e.g. fmahash=qn to disable fma
    	// Any instance of 'v' disables 'q'.
    	if len(p) > 0 && p[0] == 'q' {
    		m.quiet = true
    		p = p[1:]
    		if p == "" {
    			return nil, &parseError{"invalid pattern syntax: " + pattern}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 17:28:43 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// determined by the sign of the exact result a*b+c.
    	// See section 6.3 in ieee754.
    	//
    	// When the multiply is an infinity times a zero, the result is NaN.
    	// See section 7.2 in ieee754.
    	{name: "FMA", argLength: 3}, // compute (a*b)+c without intermediate rounding
    
    	// Data movement. Max argument length for Phi is indefinite.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Neg(64|32)F ...) => (FNEG(D|S) ...)
    
    (Com(64|32|16|8) ...) => (NOT ...)
    
    
    (Sqrt ...) => (FSQRTD ...)
    (Sqrt32 ...) => (FSQRTS ...)
    
    (Copysign ...) => (FSGNJD ...)
    
    (Abs ...) => (FABSD ...)
    
    (FMA ...) => (FMADDD ...)
    
    (Min(64|32)F ...) => (LoweredFMIN(D|S) ...)
    (Max(64|32)F ...) => (LoweredFMAX(D|S) ...)
    
    // Sign and zero extension.
    
    (SignExt8to16  ...) => (MOVBreg ...)
    (SignExt8to32  ...) => (MOVBreg ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  8. src/runtime/asm_amd64.s

    #define V2_FEATURES_CX (1 << 0 | 1 << 9 | 1 << 13  | 1 << 19 | 1 << 20 | 1 << 23)
                             // LAHF/SAHF
    #define V2_EXT_FEATURES_CX (1 << 0)
                                          // FMA       MOVBE     OSXSAVE   AVX       F16C
    #define V3_FEATURES_CX (V2_FEATURES_CX | 1 << 12 | 1 << 22 | 1 << 27 | 1 << 28 | 1 << 29)
                                                  // ABM (FOR LZNCT)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 11 20:38:24 UTC 2024
    - 60.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Sqrt ...) => (FSQRT ...)
    (Sqrt32 ...) => (FSQRTS ...)
    (Floor ...) => (FFLOOR ...)
    (Ceil ...) => (FCEIL ...)
    (Trunc ...) => (FTRUNC ...)
    (Round ...) => (FROUND ...)
    (Copysign x y) => (FCPSGN y x)
    (Abs ...) => (FABS ...)
    (FMA ...) => (FMADD ...)
    
    // Lowering extension
    // Note: we always extend to 64 bits even though some ops don't need that many result bits.
    (SignExt8to(16|32|64) ...) => (MOVBreg ...)
    (SignExt16to(32|64) ...) => (MOVHreg ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    </p>
    
    <p>
    For instance, some architectures provide a "fused multiply and add" (FMA) instruction
    that computes <code>x*y + z</code> without rounding the intermediate result <code>x*y</code>.
    These examples show when a Go implementation can use that instruction:
    </p>
    
    <pre>
    // FMA allowed for computing r, because x*y is not explicitly rounded:
    r  = x*y + z
    r  = z;   r += x*y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top