Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 201 for borrow (0.1 sec)

  1. internal/jwt/parser.go

    	return HashBorrower{pool: &s.HasherPool, borrowed: make([]hash.Hash, 0, 2)}
    }
    
    // HashBorrower keeps track of borrowed hashers and allows to return them all.
    type HashBorrower struct {
    	pool     *sync.Pool
    	borrowed []hash.Hash
    }
    
    // Borrow a single hasher.
    func (h *HashBorrower) Borrow() hash.Hash {
    	hasher := h.pool.Get().(hash.Hash)
    	h.borrowed = append(h.borrowed, hasher)
    	hasher.Reset()
    	return hasher
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 09 07:53:08 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  2. src/math/bits/bits.go

    	return
    }
    
    // --- Subtract with borrow ---
    
    // Sub returns the difference of x, y and borrow: diff = x - y - borrow.
    // The borrow input must be 0 or 1; otherwise the behavior is undefined.
    // The borrowOut output is guaranteed to be 0 or 1.
    //
    // This function's execution time does not depend on the inputs.
    func Sub(x, y, borrow uint) (diff, borrowOut uint) {
    	if UintSize == 32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  3. 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)
  4. src/net/netip/uint128.go

    }
    
    // not returns the bitwise NOT of u.
    func (u uint128) not() uint128 {
    	return uint128{^u.hi, ^u.lo}
    }
    
    // subOne returns u - 1.
    func (u uint128) subOne() uint128 {
    	lo, borrow := bits.Sub64(u.lo, 1, 0)
    	return uint128{u.hi - borrow, lo}
    }
    
    // addOne returns u + 1.
    func (u uint128) addOne() uint128 {
    	lo, carry := bits.Add64(u.lo, 1, 0)
    	return uint128{u.hi + carry, lo}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 07 21:28:44 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. src/math/big/arith_s390x.s

    loopOverEachWord:
    	BRC  $3, copySetup    // no borrow, copy the rest
    	MOVD 0(R6)(R12*1), R9
    
    	// Originally we used the borrow flag generated in the previous iteration
    	// (i.e: SUBE could be used here to do the subtraction). However, since we
    	// already know borrow is 1 (otherwise we will go to copy section), we can
    	// use SUBC here so the current iteration does not depend on the borrow flag
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/flowcontrol/v1beta1/types_swagger_doc_generated.go

    	"borrowingLimitPercent":    "`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 concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 09:27:57 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // branch on borrow
    (C(G|LG)IJ {s390x.Equal}         (NEG (Select0 (SUBE (MOVDconst [0]) (MOVDconst [0]) borrow))) [0]) => (BRC {s390x.NoBorrow} borrow)
    (C(G|LG)IJ {s390x.Equal}         (NEG (Select0 (SUBE (MOVDconst [0]) (MOVDconst [0]) borrow))) [1]) => (BRC {s390x.Borrow}   borrow)
    (C(G|LG)IJ {s390x.LessOrGreater} (NEG (Select0 (SUBE (MOVDconst [0]) (MOVDconst [0]) borrow))) [0]) => (BRC {s390x.Borrow}   borrow)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/flowcontrol/v1beta3/generated.proto

      // `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 Mar 28 15:34:11 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. pkg/apis/flowcontrol/types.go

    	LendablePercent *int32
    
    	// `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: Mon Oct 30 22:22:51 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/flowcontrol/v1/types_swagger_doc_generated.go

    	"borrowingLimitPercent":    "`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 concurrency limit. When this field is non-nil, it must hold a non-negative integer and the limit is calculated...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 21.7K bytes
    - Viewed (0)
Back to top