Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 114 for setB (0.11 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/sets/set.go

    	return ret
    }
    
    // Insert adds items to the set.
    func (s Set[T]) Insert(items ...T) Set[T] {
    	for _, item := range items {
    		s[item] = Empty{}
    	}
    	return s
    }
    
    func Insert[T comparable](set Set[T], items ...T) Set[T] {
    	return set.Insert(items...)
    }
    
    // Delete removes all items from the set.
    func (s Set[T]) Delete(items ...T) Set[T] {
    	for _, item := range items {
    		delete(s, item)
    	}
    	return s
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 19:51:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/bitset.go

    type bitset8 uint8
    
    func (f *bitset8) set(mask uint8, b bool) {
    	if b {
    		*(*uint8)(f) |= mask
    	} else {
    		*(*uint8)(f) &^= mask
    	}
    }
    
    func (f bitset8) get2(shift uint8) uint8 {
    	return uint8(f>>shift) & 3
    }
    
    // set2 sets two bits in f using the bottom two bits of b.
    func (f *bitset8) set2(shift uint8, b uint8) {
    	// Clear old bits.
    	*(*uint8)(f) &^= 3 << shift
    	// Set new bits.
    	*(*uint8)(f) |= uint8(b&3) << shift
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:03:56 UTC 2022
    - 734 bytes
    - Viewed (0)
  3. cmd/metacache-set.go

    	// Retention configuration, needed to be passed along with lifecycle if set.
    	Retention lock.Retention `msg:"-"`
    
    	// Replication configuration
    	Replication replicationConfig `msg:"-"`
    
    	// StopDiskAtLimit will stop listing on each disk when limit number off objects has been returned.
    	StopDiskAtLimit bool
    
    	// pool and set of where the cache is located.
    	pool, set int
    }
    
    func init() {
    	gob.Register(listPathOptions{})
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 22:18:44 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/UnionFileTreeTest.groovy

        private final UnionFileTree set = new UnionFileTree(TestFiles.taskDependencyFactory(), "<display name>")
    
        def setup() {
            NativeServicesTestFixture.initialize()
        }
    
        def canAddFileTree() {
            FileTreeInternal set1 = Mock(FileTreeInternal)
            when:
            set.addToUnion(set1)
    
            then:
            set.sourceCollections == [set1]
        }
    
        def cannotAddFileCollection() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        SortedSet<String> set = of("a", "b", "c");
        assertEquals(set, Sets.newTreeSet(asList("a", "b", "c")));
        assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set);
        assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d"))));
        assertFalse(Sets.newTreeSet(asList("a", "b", "d")).equals(set));
        assertFalse(set.equals(Sets.newHashSet(4, 5, 6)));
        assertFalse(Sets.newHashSet(4, 5, 6).equals(set));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  6. pkg/util/smallset/smallset_test.go

    		items2 = append(items2, fmt.Sprint(i))
    	}
    	b.Run("Set", func(b *testing.B) {
    		set1000 := sets.New(items1000...)
    		set100 := sets.New(items100...)
    		set2 := sets.New(items2...)
    		b.Run("New/1", func(b *testing.B) {
    			for range b.N {
    				_ = sets.New("a")
    			}
    		})
    		b.Run("New/1000", func(b *testing.B) {
    			for range b.N {
    				_ = sets.New(items1000...)
    			}
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_freebsd.c

    // cpp.
    #if ARM_TP_ADDRESS != 0xffff1000
    #error Wrong ARM_TP_ADDRESS!
    #endif
    #endif
    
    static void* threadentry(void*);
    static void (*setg_gcc)(void*);
    
    void
    x_cgo_init(G *g, void (*setg)(void*))
    {
    	setg_gcc = setg;
    	_cgo_set_stacklo(g, NULL);
    }
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    	sigset_t ign, oset;
    	pthread_t p;
    	size_t size;
    	int err;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:40:00 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/runtime/cgo/gcc_windows_arm64.c

    #include <stdio.h>
    #include <errno.h>
    #include "libcgo.h"
    #include "libcgo_windows.h"
    
    static void threadentry(void*);
    static void (*setg_gcc)(void*);
    
    void
    x_cgo_init(G *g, void (*setg)(void*))
    {
    	setg_gcc = setg;
    }
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	_cgo_beginthread(threadentry, ts);
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    
    static void
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 09 18:17:39 UTC 2022
    - 764 bytes
    - Viewed (0)
  9. src/runtime/cgo/gcc_windows_amd64.c

    #include <errno.h>
    #include "libcgo.h"
    #include "libcgo_windows.h"
    
    static void threadentry(void*);
    static void (*setg_gcc)(void*);
    static DWORD *tls_g;
    
    void
    x_cgo_init(G *g, void (*setg)(void*), void **tlsg, void **tlsbase)
    {
    	setg_gcc = setg;
    	tls_g = (DWORD *)tlsg;
    }
    
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	_cgo_beginthread(threadentry, ts);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 12 03:56:28 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. src/runtime/cgo/gcc_dragonfly_amd64.c

    #include <signal.h>
    #include <string.h>
    #include "libcgo.h"
    #include "libcgo_unix.h"
    
    static void* threadentry(void*);
    static void (*setg_gcc)(void*);
    
    void
    x_cgo_init(G *g, void (*setg)(void*))
    {
    	setg_gcc = setg;
    	_cgo_set_stacklo(g, NULL);
    }
    
    void
    _cgo_sys_thread_start(ThreadStart *ts)
    {
    	pthread_attr_t attr;
    	sigset_t ign, oset;
    	pthread_t p;
    	size_t size;
    	int err;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 03:39:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top