Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 198 for mask2 (0.07 sec)

  1. internal/pubsub/mask.go

    	"math"
    	"math/bits"
    )
    
    // Mask allows filtering by a bitset mask.
    type Mask uint64
    
    const (
    	// MaskAll is the mask for all entries.
    	MaskAll Mask = math.MaxUint64
    )
    
    // MaskFromMaskable extracts mask from an interface.
    func MaskFromMaskable(m Maskable) Mask {
    	return Mask(m.Mask())
    }
    
    // Contains returns whether *all* flags in other is present in t.
    func (t Mask) Contains(other Mask) bool {
    	return t&other == other
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jul 05 21:45:49 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. src/image/draw/bench_test.go

    	}
    
    	var mask image.Image
    	switch mcm {
    	case nil:
    		// No-op.
    	case color.AlphaModel:
    		mask1 := image.NewAlpha(image.Rect(0, 0, srcw, srch))
    		for y := 0; y < srch; y++ {
    			for x := 0; x < srcw; x++ {
    				a := uint8((23*x + 29*y) % 0x100)
    				// Glyph masks are typically mostly zero,
    				// so we only set a quarter of mask1's pixels.
    				if a >= 0xc0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/topologymanager/bitmask/bitmask.go

    		}
    		mask &^= 1 << uint64(i)
    	}
    	*s = mask
    	return nil
    }
    
    // And performs and operation on all bits in masks
    func (s *bitMask) And(masks ...BitMask) {
    	for _, m := range masks {
    		*s &= *m.(*bitMask)
    	}
    }
    
    // Or performs or operation on all bits in masks
    func (s *bitMask) Or(masks ...BitMask) {
    	for _, m := range masks {
    		*s |= *m.(*bitMask)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:09 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. src/runtime/gcinfo_test.go

    		// may be larger than we expect.
    		return
    	}
    	t.Errorf("bad GC program for %v:\nwant %+v\ngot  %+v", name, mask0, mask)
    }
    
    func trimDead(mask []byte) []byte {
    	for len(mask) > 0 && mask[len(mask)-1] == typeScalar {
    		mask = mask[:len(mask)-1]
    	}
    	return mask
    }
    
    var infoPtr = []byte{typePointer}
    
    type Ptr struct {
    	*byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. src/syscall/wtf8_windows.go

    			// Check if s[i:] contains a valid WTF-8 encoded surrogate.
    			if sc := s[i:]; len(sc) >= 3 && sc[0] == 0xED && 0xA0 <= sc[1] && sc[1] <= 0xBF && 0x80 <= sc[2] && sc[2] <= 0xBF {
    				r = rune(sc[0]&mask3)<<12 + rune(sc[1]&maskx)<<6 + rune(sc[2]&maskx)
    				buf = append(buf, uint16(r))
    				i += 3
    				continue
    			}
    		}
    		i += size
    		buf = utf16.AppendRune(buf, r)
    	}
    	return buf
    }
    
    // decodeWTF16 returns the WTF-8 encoding of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 09:26:16 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. src/image/draw/clip_test.go

    	src0 := image.NewRGBA(image.Rect(0, 0, 100, 100))
    	mask0 := image.NewRGBA(image.Rect(0, 0, 100, 100))
    	for _, c := range clipTests {
    		dst := dst0.SubImage(c.dr).(*image.RGBA)
    		src := src0.SubImage(c.sr).(*image.RGBA)
    		r, sp, mp := c.r, c.sp, c.mp
    		if c.nilMask {
    			clip(dst, &r, src, &sp, nil, nil)
    		} else {
    			clip(dst, &r, src, &sp, mask0.SubImage(c.mr), &mp)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/docs/userguide/authoring-builds/tutorial/partr2_build_lifecycle.adoc

        }
    }
    
    tasks.named("task2"){
        println("NAMED TASK2: This is executed during the configuration phase")
        doFirst {
            println("NAMED TASK2 - doFirst: This is executed during the execution phase")
        }
        doLast {
            println("NAMED TASK2 - doLast: This is executed during the execution phase")
        }
    }
    ----
    =====
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 29 05:44:04 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/AggregateMultiProjectTaskReportModelTest.groovy

            TaskDetails task2 = taskDetails('task2')
            TaskReportModel project1 = Mock()
            TaskReportModel project2 = Mock()
            _ * project1.groups >> (['group'] as LinkedHashSet)
            _ * project1.getTasksForGroup('group') >> ([task1] as Set)
            _ * project2.groups >> (['group'] as LinkedHashSet)
            _ * project2.getTasksForGroup('group') >> ([task2] as Set)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 31 16:45:11 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/execution/TaskNameResolverTest.groovy

            def matches = asTasks(result['task1'])
    
            then:
            matches == [task1, task2]
    
            and:
            1 * tasks.names >> (['task1', 'task2'] as SortedSet)
            1 * tasks.getByName('task1') >> task1
            1 * childTasks.names >> (['task1', 'task3'] as SortedSet)
            1 * childTasks.getByName('task1') >> task2
            0 * tasks._
            0 * childTasks._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Oct 22 03:06:58 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/DefaultPublishArtifactSetTest.groovy

            Task task1 = Mock()
            Task task2 = Mock()
            Task task3 = Mock()
    
            given:
            store.add(artifact1)
            store.add(artifact2)
            builtBy(artifact1, task1, task2)
            builtBy(artifact2, task1, task3)
    
            expect:
            set.buildDependencies.getDependencies(null) == [task1, task2, task3] as Set
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top