Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 80 for arithmetic (0.16 sec)

  1. src/cmd/compile/internal/walk/convert.go

    	case ir.OCALLFUNC, ir.OCALLINTER:
    		return n
    	}
    
    	if n.X.Op() == ir.ODOTPTR && ir.IsReflectHeaderDataField(n.X) {
    		return n
    	}
    
    	// Find original unsafe.Pointer operands involved in this
    	// arithmetic expression.
    	//
    	// "It is valid both to add and to subtract offsets from a
    	// pointer in this way. It is also valid to use &^ to round
    	// pointers, usually for alignment."
    	var originals []ir.Node
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/math/big/nat.go

    //
    // with 0 <= x[i] < _B and 0 <= i < n is stored in a slice of length n,
    // with the digits x[i] as the slice elements.
    //
    // A number is normalized if the slice contains no leading 0 digits.
    // During arithmetic operations, denormalized values may occur but are
    // always normalized before returning the final result. The normalized
    // representation of 0 is the empty or nil slice (length = 0).
    type nat []Word
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  3. src/runtime/stack.go

    	fixedStack6 = fixedStack5 | (fixedStack5 >> 16)
    	fixedStack  = fixedStack6 + 1
    
    	// stackNosplit is the maximum number of bytes that a chain of NOSPLIT
    	// functions can use.
    	// This arithmetic must match that in cmd/internal/objabi/stack.go:StackNosplit.
    	stackNosplit = abi.StackNosplitBase * sys.StackGuardMultiplier
    
    	// The stack guard is a pointer this many bytes above the
    	// bottom of the stack.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/magic.go

    // First consider unsigned division.
    // Our strategy is to precompute 1/c then do
    //   ⎣x / c⎦ = ⎣x * (1/c)⎦.
    // 1/c is less than 1, so we can't compute it directly in
    // integer arithmetic.  Let's instead compute 2^e/c
    // for a value of e TBD (^ = exponentiation).  Then
    //   ⎣x / c⎦ = ⎣x * (2^e/c) / 2^e⎦.
    // Dividing by 2^e is easy.  2^e/c isn't an integer, unfortunately.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. src/text/template/doc.go

    comparable. For basic types such as integers, the rules are relaxed:
    size and exact type are ignored, so any integer value, signed or unsigned,
    may be compared with any other integer value. (The arithmetic value is compared,
    not the bit pattern, so all negative integers are less than all unsigned integers.)
    However, as usual, one may not compare an int with a float32 and so on.
    
    Associated templates
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

      return absl::OkStatus();
    }
    
    // Returns XLA sharding from XlaSharding op connected to a result value.
    // XlaSharding op may be directly connected to output but it may also be
    // followed by Identity or simple arithmetic ops. In case where bfloat16 type is
    // used, we might see a Cast op.
    //
    // TODO(hongjunchoi): Add logic to parse XlaSharding op inside control flow (If,
    // Case) ops and Caller argument values.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/testdata/arith_test.go

    // Copyright 2015 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.
    
    // Tests arithmetic expressions
    
    package main
    
    import (
    	"math"
    	"runtime"
    	"testing"
    )
    
    const (
    	y = 0x0fffFFFF
    )
    
    var (
    	g8  int8
    	g16 int16
    	g32 int32
    	g64 int64
    )
    
    //go:noinline
    func lshNop1(x uint64) uint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 19:30:59 UTC 2023
    - 43.5K bytes
    - Viewed (0)
  8. doc/asm.html

    <br>
    <code>R0&gt;&gt;16</code>
    <br>
    <code>R0&lt;&lt;16</code>
    <br>
    <code>R0@&gt;16</code>:
    For <code>&lt;&lt;</code>, left shift <code>R0</code> by 16 bits.
    The other codes are <code>-&gt;</code> (arithmetic right shift),
    <code>&gt;&gt;</code> (logical right shift), and
    <code>@&gt;</code> (rotate right).
    </li>
    
    <li>
    <code>R0-&gt;R1</code>
    <br>
    <code>R0&gt;&gt;R1</code>
    <br>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 19:15:27 UTC 2023
    - 36.3K bytes
    - Viewed (1)
  9. src/cmd/compile/internal/walk/assign.go

    	//   idx = newLen - len(l2)
    	// We use this expression instead of oldLen because it avoids
    	// a spill/restore of oldLen.
    	// Note: this doesn't work optimally currently because
    	// the compiler optimizer undoes this arithmetic.
    	idx := ir.NewBinaryExpr(base.Pos, ir.OSUB, newLen, ir.NewUnaryExpr(base.Pos, ir.OLEN, l2))
    
    	var ncopy ir.Node
    	if elemtype.HasPointers() {
    		// copy(s[idx:], l2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. src/math/big/arith_ppc64x.s

    // license that can be found in the LICENSE file.
    
    //go:build !math_big_pure_go && (ppc64 || ppc64le)
    
    #include "textflag.h"
    
    // This file provides fast assembly versions for the elementary
    // arithmetic operations on vectors implemented in arith.go.
    
    // func addVV(z, y, y []Word) (c Word)
    // z[i] = x[i] + y[i] for all i, carrying
    TEXT ·addVV(SB), NOSPLIT, $0
    	MOVD  z_len+8(FP), R7   // R7 = z_len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top