Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 191 for idempotent (0.31 sec)

  1. src/internal/runtime/atomic/atomic_wasm.go

    //go:noinline
    func And8(ptr *uint8, val uint8) {
    	*ptr = *ptr & val
    }
    
    //go:nosplit
    //go:noinline
    func Or8(ptr *uint8, val uint8) {
    	*ptr = *ptr | val
    }
    
    // NOTE: Do not add atomicxor8 (XOR is not idempotent).
    
    //go:nosplit
    //go:noinline
    func And(ptr *uint32, val uint32) {
    	*ptr = *ptr & val
    }
    
    //go:nosplit
    //go:noinline
    func Or(ptr *uint32, val uint32) {
    	*ptr = *ptr | val
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/regexp/syntax/simplify.go

    	// Special case: repeat the empty string as much as
    	// you want, but it's still the empty string.
    	if sub.Op == OpEmptyMatch {
    		return sub
    	}
    	// The operators are idempotent if the flags match.
    	if op == sub.Op && flags&NonGreedy == sub.Flags&NonGreedy {
    		return sub
    	}
    	if re != nil && re.Op == op && re.Flags&NonGreedy == flags&NonGreedy && sub == re.Sub[0] {
    		return re
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 02 00:13:47 UTC 2016
    - 4.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks));
    
            // check idempotency
            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
          }
        }
      }
    
      /** Checks idempotency, and that we observe the promised number of stripes. */
      public void testBasicInvariants() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/StripedTest.java

            assertTrue(Ordering.natural().onResultOf(Functions.forMap(indexByLock)).isOrdered(locks));
    
            // check idempotency
            Iterable<?> locks2 = striped.bulkGet(objects);
            assertEquals(Lists.newArrayList(locks), Lists.newArrayList(locks2));
          }
        }
      }
    
      /** Checks idempotency, and that we observe the promised number of stripes. */
      public void testBasicInvariants() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/fifo_list_test.go

    		workEstimateGot := list.QueueSum()
    		assert(t, &queueSumExpected, &workEstimateGot)
    
    		// check idempotency
    		removeFn[i]()
    
    		workEstimateGot = list.QueueSum()
    		assert(t, &queueSumExpected, &workEstimateGot)
    	}
    
    	// Check second type of idempotency: Dequeue + removeFn.
    	for i := range arrival {
    		req := arrival[i]
    		removeFn[i] = list.Enqueue(req)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 28 08:48:40 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_get_split.txt

    # even match the query: if we ran the same query twice, we wouldn't consider the
    # module to match the wildcard during the second call, so why should we consider
    # it to match during the first one?  ('go get' should be idempotent, and if we
    # did that then it would not be.)
    #
    # But we also can't leave it where it is: the user requested that we set everything
    # matching the pattern to the given version, and right now we have packages
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. src/net/http/httputil/persist.go

    	r := sc.r
    	lastbody := sc.lastbody
    	sc.lastbody = nil
    	sc.mu.Unlock()
    
    	// Make sure body is fully consumed, even if user does not call body.Close
    	if lastbody != nil {
    		// body.Close is assumed to be idempotent and multiple calls to
    		// it should return the error that its first invocation
    		// returned.
    		err = lastbody.Close()
    		if err != nil {
    			sc.mu.Lock()
    			defer sc.mu.Unlock()
    			sc.re = err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/encoding/gob/type_test.go

    			t.Errorf("checkType: expected %q got %s", tt.str, tt.id.string())
    		}
    		if tt.id == 0 {
    			t.Errorf("id for %q is zero", tt.str)
    		}
    	}
    }
    
    // Reregister some basic types to check registration is idempotent.
    func TestReregistration(t *testing.T) {
    	newtyp := getTypeUnlocked("int", reflect.TypeFor[int]())
    	if newtyp != tInt.gobType() {
    		t.Errorf("reregistration of %s got new type", newtyp.string())
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

       * note that the execution order of all listeners is ultimately chosen by the implementations of
       * the supplied executors.
       *
       * <p>This method is idempotent. Calling it several times in parallel is semantically equivalent
       * to calling it exactly once.
       *
       * @since 10.0 (present in 1.0 as {@code run})
       */
      public void execute() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 21:17:24 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/initialization/DefaultGradlePropertiesControllerTest.groovy

            then:
            properties.find("property") == '42'
            properties.mergeProperties([:]) == [property: '42']
        }
    
        def "loadGradlePropertiesFrom is idempotent"() {
    
            given:
            // use a different File instance for each call to ensure it is compared by value
            def currentDir = { new File('.') }
            def loader = Mock(IGradlePropertiesLoader)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 06 11:52:10 UTC 2023
    - 12.2K bytes
    - Viewed (0)
Back to top