Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,948 for integers (0.32 sec)

  1. guava/src/com/google/common/primitives/UnsignedInts.java

      /**
       * Sorts the array, treating its elements as unsigned 32-bit integers.
       *
       * @since 23.1
       */
      public static void sort(int[] array) {
        checkNotNull(array);
        sort(array, 0, array.length);
      }
    
      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned 32-bit integers.
       *
       * @since 23.1
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/encoding/gob/doc.go

    	struct { }			// no field names in common
    	struct { C, D int }		// no field names in common
    
    Integers are transmitted two ways: arbitrary precision signed integers or
    arbitrary precision unsigned integers. There is no int8, int16 etc.
    discrimination in the gob format; there are only signed and unsigned integers. As
    described below, the transmitter sends the value in a variable-length encoding;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. src/fmt/example_test.go

    	// case decimal for integers, which can be explicitly requested with %d;
    	// the output is just what Println generates.
    	integer := 23
    	// Each of these prints "23" (without the quotes).
    	fmt.Println(integer)
    	fmt.Printf("%v\n", integer)
    	fmt.Printf("%d\n", integer)
    
    	// The special verb %T shows the type of an item rather than its value.
    	fmt.Printf("%T %T\n", integer, &integer)
    	// Result: int *int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 21:03:10 UTC 2019
    - 11.8K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cover_swig.txt

    stdout 'coverage: 100.0% of statements'
    
    -- go.mod --
    module simple
    
    go 1.21
    -- main.c --
    /* A global variable */
    double Foo = 3.0;
    
    /* Compute the greatest common divisor of positive integers */
    int gcd(int x, int y) {
      int g;
      g = y;
      while (x > 0) {
        g = x;
        x = y % x;
        y = g;
      }
      return g;
    }
    
    
    -- main.go --
    package main
    
    import (
    	"fmt"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 05 21:29:51 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. test/range3.go

    // run
    
    // Copyright 2023 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.
    
    // Test the 'for range' construct ranging over integers.
    
    package main
    
    func testint1() {
    	bad := false
    	j := 0
    	for i := range int(4) {
    		if i != j {
    			println("range var", i, "want", j)
    			bad = true
    		}
    		j++
    	}
    	if j != 4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 17:20:08 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/testing/allocs.go

    	runtime.ReadMemStats(&memstats)
    	mallocs += memstats.Mallocs
    
    	// Average the mallocs over the runs (not counting the warm-up).
    	// We are forced to return a float64 because the API is silly, but do
    	// the division as integers so we can ask if AllocsPerRun()==1
    	// instead of AllocsPerRun()<2.
    	return float64(mallocs / uint64(runs))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 1.4K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/helper/normalize_score.go

    // scores from [0, max(scores)] to [0, maxPriority]. If reverse is set to true, it
    // reverses the scores by subtracting it from maxPriority.
    // Note: The input scores are always assumed to be non-negative integers.
    func DefaultNormalizeScore(maxPriority int64, reverse bool, scores framework.NodeScoreList) *framework.Status {
    	var maxCount int64
    	for i := range scores {
    		if scores[i].Score > maxCount {
    			maxCount = scores[i].Score
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 14 16:15:18 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/table_test.go

    						{Name: "Beta", Type: "integer", Description: "the beta field", Format: "int64", Priority: 42, JSONPath: ".spec.beta"},
    						{Name: "Gamma", Type: "integer", Description: "a column with wrongly typed values", JSONPath: ".spec.gamma"},
    						{Name: "Epsilon", Type: "string", Description: "an array of integers as string", JSONPath: ".spec.epsilon"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 19:34:41 UTC 2021
    - 18.9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/lockedfile/transform_test.go

    				}
    
    				u := binary.LittleEndian.Uint64(data)
    				for i := 1; i < words; i++ {
    					next := binary.LittleEndian.Uint64(data[i*8:])
    					if next != u+1 {
    						t.Errorf("wrote sequential integers, but read integer out of sequence at offset %d", i)
    						return chunk, nil
    					}
    					u = next
    				}
    
    				return chunk, nil
    			})
    
    			if err != nil {
    				t.Errorf("unexpected error from Transform: %v", err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 06 22:37:50 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. src/internal/pkgbits/doc.go

    // Each element has a "kind" and a dense, non-negative index.
    // Elements can be randomly accessed given their kind and index.
    //
    // Individual elements are sequences of variable-length values (e.g.,
    // integers, booleans, strings, go/constant values, cross-references
    // to other elements). Package pkgbits provides APIs for encoding and
    // decoding these low-level values, but the details of mapping
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 20 19:01:40 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top