Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 216 for arithmetic (0.18 sec)

  1. src/internal/coverage/cformat/format.go

    	pcount := fm.p.unitTable[ukey]
    	var result uint32
    	if fm.cm == coverage.CtrModeSet {
    		if count != 0 || pcount != 0 {
    			result = 1
    		}
    	} else {
    		// Use saturating arithmetic.
    		result, _ = cmerge.SaturatingAdd(pcount, count)
    	}
    	fm.p.unitTable[ukey] = result
    }
    
    // sortUnits sorts a slice of extcu objects in a package according to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/nilcheck.go

    		for _, v := range b.Values {
    			// a value resulting from taking the address of a
    			// value, or a value constructed from an offset of a
    			// non-nil ptr (OpAddPtr) implies it is non-nil
    			// We also assume unsafe pointer arithmetic generates non-nil pointers. See #27180.
    			// We assume that SlicePtr is non-nil because we do a bounds check
    			// before the slice access (and all cap>0 slices have a non-nil ptr). See #30366.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/s390x/a.out.go

    	C_GOTADDR  // GOT slot for a symbol in -dynlink mode
    	C_TEXTSIZE // text size
    	C_ANY
    	C_NCLASS // must be the last
    )
    
    const (
    	// integer arithmetic
    	AADD = obj.ABaseS390X + obj.A_ARCHSPECIFIC + iota
    	AADDC
    	AADDE
    	AADDW
    	ADIVW
    	ADIVWU
    	ADIVD
    	ADIVDU
    	AMODW
    	AMODWU
    	AMODD
    	AMODDU
    	AMULLW
    	AMULLD
    	AMULHD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 16:41:03 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  4. src/math/big/arith.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file provides Go implementations of elementary multi-precision
    // arithmetic operations on word vectors. These have the suffix _g.
    // These are needed for platforms without assembly implementations of these routines.
    // This file also contains elementary operations that can be implemented
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 28 20:09:27 UTC 2022
    - 8.3K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/sys/cpu/cpu.go

    	HasTHUMB    bool // ARM Thumb instruction set
    	Has26BIT    bool // Address space limited to 26-bits
    	HasFASTMUL  bool // 32-bit operand, 64-bit result multiplication support
    	HasFPA      bool // Floating point arithmetic support
    	HasVFP      bool // Vector floating point support
    	HasEDSP     bool // DSP Extensions support
    	HasJAVA     bool // Java instruction set
    	HasIWMMXT   bool // Intel Wireless MMX technology support
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/expr.go

    	t = l.Type()
    	if (l.Type() == types.UntypedFloat || l.Type() == types.UntypedComplex) && r.Op() == ir.OLITERAL {
    		t = types.UntypedInt
    	}
    	return l, r, t
    }
    
    // tcArith typechecks operands of a binary arithmetic expression.
    // The result of tcArith MUST be assigned back to original operands,
    // t is the type of the expression, and should be set by the caller. e.g:
    //
    //	n.X, n.Y, t = tcArith(n, op, n.X, n.Y)
    //	n.SetType(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/shifts.go

    	_ = 1.1 /* ERROR "int" */ <<s + x == 1.1
    
    	_ = 1<<s == x<<s
    	_ = 1.<<s == x<<s
    	_ = 1.1  /* ERROR "int" */ <<s == x<<s
    }
    
    func shifts6() {
    	// shifts as operands in non-arithmetic operations and as arguments
    	var a [10]int
    	var s uint
    
    	_ = a[1<<s]
    	_ = a[1.0]
    	_ = a[1.0<<s]
    
    	_ = make([]int, 1.0)
    	_ = make([]int, 1.0<<s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Lowering arithmetic
    (Add(Ptr|64|32|16|8) ...) => (ADD ...)
    (Add(64|32)F ...) => (FADD(D|S) ...)
    
    (Sub(Ptr|64|32|16|8) ...) => (SUB ...)
    (Sub(64|32)F ...) => (FSUB(D|S) ...)
    
    (Mul64 ...) => (MUL  ...)
    (Mul64uhilo ...) => (LoweredMuluhilo ...)
    (Mul64uover ...) => (LoweredMuluover ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/branchelim.go

    		OpDiv32F, OpDiv64F,
    		OpMod8, OpMod8u, OpMod16, OpMod16u,
    		OpMod32, OpMod32u, OpMod64, OpMod64u:
    		return true
    	default:
    		return false
    	}
    }
    
    func isPtrArithmetic(op Op) bool {
    	// Pointer arithmetic can't be speculatively executed because the result
    	// may be an invalid pointer (if, for example, the condition is that the
    	// base pointer is not nil). See issue 56990.
    	switch op {
    	case OpOffPtr, OpAddPtr, OpSubPtr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  10. src/crypto/internal/edwards25519/field/fe.go

    // Copyright (c) 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package field implements fast arithmetic modulo 2^255-19.
    package field
    
    import (
    	"crypto/subtle"
    	"errors"
    	"internal/byteorder"
    	"math/bits"
    )
    
    // Element represents an element of the field GF(2^255-19). Note that this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top