Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for borrow (0.2 sec)

  1. src/crypto/ecdh/nist.go

    	}
    
    	// Perform a subtraction with borrow.
    	var borrow uint64
    	for i := 0; i < len(bufA); i += 8 {
    		limbA, limbB := byteorder.LeUint64(bufA[i:]), byteorder.LeUint64(bufB[i:])
    		_, borrow = bits.Sub64(limbA, limbB, borrow)
    	}
    
    	// If there is a borrow at the end of the operation, then a < b.
    	return borrow == 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  2. test/codegen/bits.go

    }
    func issue44228b(a []int32, i int) bool {
    	// amd64: "BTL", -"SHL"
    	return a[i>>5]&(1<<(i&31)) != 0
    }
    
    func issue48467(x, y uint64) uint64 {
    	// arm64: -"NEG"
    	d, borrow := bits.Sub64(x, y, 0)
    	return x - d&(-borrow)
    }
    
    func foldConst(x, y uint64) uint64 {
    	// arm64: "ADDS\t[$]7",-"MOVD\t[$]7"
    	d, b := bits.Add64(x, 7, 0)
    	return b & d
    }
    
    func foldConstOutOfRange(a uint64) uint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/api/flowcontrol/v1/types.go

    	// `borrowingLimitPercent`, if present, configures a limit on how many
    	// seats this priority level can borrow from other priority levels.
    	// The limit is known as this level's BorrowingConcurrencyLimit
    	// (BorrowingCL) and is a limit on the total number of seats that this
    	// level may borrow at any one time.
    	// This field holds the ratio of that limit to the level's nominal
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  4. src/crypto/internal/bigmod/nat.go

    	needSubtraction := no
    	for i := _W - 1; i >= 0; i-- {
    		carry := (y >> i) & 1
    		var borrow uint
    		mask := ctMask(needSubtraction)
    		for i := 0; i < size; i++ {
    			l := xLimbs[i] ^ (mask & (xLimbs[i] ^ dLimbs[i]))
    			xLimbs[i], carry = bits.Add(l, l, carry)
    			dLimbs[i], borrow = bits.Sub(xLimbs[i], mLimbs[i], borrow)
    		}
    		// Like in maybeSubtractModulus, we need the subtraction if either it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc

    // returns `std::nullopt`.
    std::optional<llvm::StringRef> GetTpuClusterName(Operation* op) {
      if (auto tpu_status = op->getAttrOfType<StringAttr>(kTpuStatusAttr)) {
        // Borrow cluster name from TPU status (for `TPUCompilationResult` op).
        return tpu_status.getValue();
      }
      auto device_type = op->getAttrOfType<StringAttr>(TF::kCompileDeviceTypeAttr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_device.cc

        // The data transfer requests from device to host could arrive out of order,
        // so a single stream would cause deadlock. For this case,
        // xla_device_context would borrow a stream for each transfer request.
        device_to_host_stream = nullptr;
      } else {
        host_to_device_stream = stream_;
        device_to_host_stream = stream_;
        device_to_device_streams = {stream_};
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewrite.go

    // Note that these semantics differ from x86: the carry flag has the opposite
    // sense on a subtraction!
    //
    //	On amd64, C=1 represents a borrow, e.g. SBB on amd64 does x - y - C.
    //	On arm64, C=0 represents a borrow, e.g. SBC on arm64 does x - y - ^C.
    //	 (because it does x + ^y + C).
    //
    // See https://en.wikipedia.org/wiki/Carry_flag#Vs._borrow_flag
    type flagConstant uint8
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc

          if (device_type_attr.getValue().empty()) continue;
          if (device_type_attr.getValue() != mlir::TF::kTpuDevice) continue;
        }
    
        if (op.hasAttr(mlir::TF::kReplicationInfoAttr)) {
          // For replicated case, borrow cluster structure from replication info.
          // Following condition is already checked in
          // `HasValidCompilationAndReplicationAttributes` above, assert here for
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 39.3K bytes
    - Viewed (0)
  9. cmd/sts-handlers.go

    		return
    	}
    
    	ctx = newContext(r, w, action)
    
    	// Validate the authentication result here so that failures will be audit-logged.
    	if apiErrCode != ErrNone {
    		stsErr := apiToSTSError(apiErrCode)
    		// Borrow the description error from the API error code
    		writeSTSErrorResponse(ctx, w, stsErr, fmt.Errorf(errorCodes[apiErrCode].Description))
    		return
    	}
    
    	if err := claims.populateSessionPolicy(r.Form); err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  10. src/runtime/asm_loong64.s

    	MOVV	m_g0(R12), g
    	JAL	runtime·save_g(SB)
    	MOVV	(g_sched+gobuf_sp)(g), R3
    	MOVV	savedsp-24(SP), R13 // must match frame size
    	MOVV	R13, (g_sched+gobuf_sp)(g)
    
    	// If the m on entry was nil, we called needm above to borrow an m,
    	// 1. for the duration of the call on non-pthread platforms,
    	// 2. or the duration of the C thread alive on pthread platforms.
    	// If the m on entry wasn't nil,
    	// 1. the thread might be a Go thread,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 15:04:25 UTC 2024
    - 26.5K bytes
    - Viewed (0)
Back to top