Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 200 for remainders (0.33 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(UnsignedLongs.remainder(14, 5)).isEqualTo(4);
        assertThat(UnsignedLongs.remainder(0, 50)).isEqualTo(0);
        assertThat(UnsignedLongs.remainder(0xfffffffffffffffeL, 0xfffffffffffffffdL)).isEqualTo(1);
        assertThat(UnsignedLongs.remainder(0xfffffffffffffffdL, 0xfffffffffffffffeL))
            .isEqualTo(0xfffffffffffffffdL);
        assertThat(UnsignedLongs.remainder(0xfffffffffffffffeL, 65535)).isEqualTo(65534L);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:36:17 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java

          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.divide(longs[j], divisors[j]);
        }
        return tmp;
      }
    
      @Benchmark
      long remainder(int reps) {
        long tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += UnsignedLongs.remainder(longs[j], divisors[j]);
        }
        return tmp;
      }
    
      @Benchmark
      long parseUnsignedLong(int reps) {
        long tmp = 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/net/http.go

    					foundEndQuote = true
    					remainder = strings.TrimSpace(dateAndRemainder[i+1:])
    					break
    				}
    			}
    			if !foundEndQuote {
    				return WarningHeader{}, "", errors.New("invalid warning header: unterminated date segment")
    			}
    		} else {
    			remainder = dateAndRemainder
    		}
    	}
    	if len(remainder) > 0 {
    		if remainder[0] == ',' {
    			// consume comma if present
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 05 00:08:58 UTC 2022
    - 20.8K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/sha3/sha3_s390x.go

    	for len(b) > 0 {
    		if len(s.buf) == 0 && len(b) >= cap(s.buf) {
    			// Hash the data directly and push any remaining bytes
    			// into the buffer.
    			remainder := len(b) % s.rate
    			kimd(s.function, &s.a, b[:len(b)-remainder])
    			if remainder != 0 {
    				s.copyIntoBuf(b[len(b)-remainder:])
    			}
    			return length, nil
    		}
    
    		if len(s.buf) == cap(s.buf) {
    			// flush the buffer
    			kimd(s.function, &s.a, s.buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. src/encoding/pem/pem_test.go

    	}
    	result, remainder = Decode(remainder)
    	if !isEmpty(result) {
    		t.Errorf("#2 should be empty but got:%#v", result)
    	}
    	result, remainder = Decode(remainder)
    	if !isEmpty(result) {
    		t.Errorf("#3 should be empty but got:%#v", result)
    	}
    	result, remainder = Decode(remainder)
    	if !isEmpty(result) {
    		t.Errorf("#4 should be empty but got:%#v", result)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:56:00 UTC 2022
    - 23.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go

    	case a.scale > b.scale:
    		result, remainder, exact := divideByScaleInt64(b.value, a.scale-b.scale)
    		if !exact {
    			return a.AsDec().Cmp(b.AsDec())
    		}
    		if result == a.value {
    			switch {
    			case remainder == 0:
    				return 0
    			case remainder > 0:
    				return -1
    			default:
    				return 1
    			}
    		}
    		b.value = result
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 19:42:28 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. common/scripts/setup_env.sh

    TMPDIR=""
    if [[ "$1" =~ ([^:]*):(.*) ]]; then
      while true; do
        rematch=${BASH_REMATCH[1]}
        add_KUBECONFIG_if_exists "$rematch"
        remainder="${BASH_REMATCH[2]}"
        if [[ ! "$remainder" =~ ([^:]*):(.*) ]]; then
          if [[ -n "$remainder" ]]; then
            add_KUBECONFIG_if_exists "$remainder"
            break
          fi
        fi
      done
    else
      add_KUBECONFIG_if_exists "$1"
    fi
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 14:37:27 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. src/runtime/sys_plan9_arm.s

    	// subtract (10**9 * sec) from nsec to get nanosecond remainder
    	MOVW	$1000000000, R5		// 10**9
    	MULLU	R6,R5,(R9,R8)		// R8:R9 = R6:R7 * R5
    	MULA	R7,R5,R9,R9
    	SUB.S	R8,R1			// R1:R2 -= R8:R9
    	SBC	R9,R2
    
    	// because reciprocal was a truncated repeating fraction, quotient
    	// may be slightly too small -- adjust to make remainder < 10**9
    	CMP	R5,R1			// if remainder > 10**9
    	SUB.HS	R5,R1			//    remainder -= 10**9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 29 14:15:04 UTC 2021
    - 7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/term/terminal.go

    	maxLine int
    
    	termWidth, termHeight int
    
    	// outBuf contains the terminal data to be sent.
    	outBuf []byte
    	// remainder contains the remainder of any partial key sequences after
    	// a read. It aliases into inBuf.
    	remainder []byte
    	inBuf     [256]byte
    
    	// history contains previously entered commands so that they can be
    	// accessed with the up and down keys.
    	history stRingBuffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/cover_sync_atomic_import.txt

    # execute at least one test.
    
    go test -short -covermode=atomic -run=TestStoreInt64 sync/atomic
    go test -short -covermode=atomic -run=TestAnd8 internal/runtime/atomic
    
    # Skip remainder if no race detector support.
    [!race] skip
    
    go test -short -cover -race -run=TestStoreInt64 sync/atomic
    go test -short -cover -race -run=TestAnd8 internal/runtime/atomic
    
    -- go.mod --
    module coverdep
    
    go 1.16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 00:18:30 UTC 2024
    - 1011 bytes
    - Viewed (0)
Back to top