Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for sdivisible (0.21 sec)

  1. src/cmd/compile/internal/ssa/magic_test.go

    			1<<63 - 1,
    		} {
    			if c>>(n-1) != 0 {
    				continue // not appropriate for the given n.
    			}
    			if !sdivisibleOK(n, int64(c)) {
    				t.Errorf("expected n=%d c=%d to pass\n", n, c)
    			}
    			k := sdivisible(n, int64(c)).k
    			m := sdivisible(n, int64(c)).m
    			a := sdivisible(n, int64(c)).a
    			max := sdivisible(n, int64(c)).max
    			mask := ^uint64(0) >> (64 - n)
    
    			C := new(big.Int).SetInt64(c)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 22:02:07 UTC 2019
    - 9.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/magic.go

    		k:   int64(k),
    		m:   m,
    		a:   a,
    		max: max,
    	}
    }
    
    func sdivisible8(c int8) sdivisibleData   { return sdivisible(8, int64(c)) }
    func sdivisible16(c int16) sdivisibleData { return sdivisible(16, int64(c)) }
    func sdivisible32(c int32) sdivisibleData { return sdivisible(32, int64(c)) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  3. pkg/registry/apps/deployment/strategy_test.go

    	errTests := []struct {
    		name          string
    		newDeployment *apps.Deployment
    		oldDeployment *apps.Deployment
    	}{
    		{
    			name:          "validation on an existing deployment with divisible hugepages values to a new deployment with indivisible hugepages values",
    			newDeployment: newDeploymentWithHugePageValue(api.ResourceHugePagesPrefix+"2Mi", resource.MustParse("2.1Mi")),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:17:45 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

     => (Leq8U
    			(RotateLeft8 <typ.UInt8>
    				(Add8 <typ.UInt8>
    					(Mul8 <typ.UInt8>
    						(Const8 <typ.UInt8> [int8(sdivisible8(c).m)])
    						x)
    					(Const8 <typ.UInt8> [int8(sdivisible8(c).a)])
    				)
    				(Const8 <typ.UInt8> [int8(8-sdivisible8(c).k)])
    			)
    			(Const8 <typ.UInt8> [int8(sdivisible8(c).max)])
    		)
    
    (Eq16 x (Mul16 (Const16 [c])
      (Sub16
        (Rsh32x64
          mul:(Mul32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. test/codegen/arithmetic.go

    	// ppc64x:"ANDCC",-"RLDICL",-"SRAD",-"CMP"
    	a := n1%64 == 0 // signed divisible
    
    	// 386:"TESTL\t[$]63",-"DIVL",-"SHRL"
    	// amd64:"TESTQ\t[$]63",-"DIVQ",-"SHRQ"
    	// arm:"AND\t[$]63",-".*udiv",-"SRA"
    	// arm64:"TST\t[$]63",-"UDIV",-"ASR",-"AND"
    	// ppc64x:"ANDCC",-"RLDICL",-"SRAD",-"CMP"
    	b := n2%64 != 0 // signed indivisible
    
    	return a, b
    }
    
    // Check that constant modulo divs get turned into MULs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/UserInputConsoleRendererTest.groovy

            when:
            renderer.onOutput(userInputRequestEvent)
    
            then:
            1 * console.getBuildProgressArea() >> buildProgressArea
            1 * buildProgressArea.setVisible(false)
            1 * console.flush()
    
            and:
            0 * console._
            0 * listener.onOutput(_)
            0 * prompt._
            0 * textArea._
            0 * userInput._
            renderer.eventQueue.empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 30 05:02:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/BuildProgressArea.java

        // TODO(ew): Consider whether this belongs in Console or here
        StyledLabel getProgressBar();
        List<StyledLabel> getBuildProgressLabels();
        void resizeBuildProgressTo(int numberOfLabels);
        void setVisible(boolean isVisible);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 966 bytes
    - Viewed (0)
  8. test/sieve.go

    func Generate(ch chan<- int) {
    	for i := 2; ; i++ {
    		ch <- i // Send 'i' to channel 'ch'.
    	}
    }
    
    // Copy the values from channel 'in' to channel 'out',
    // removing those divisible by 'prime'.
    func Filter(in <-chan int, out chan<- int, prime int) {
    	for {
    		i := <-in // Receive value of new variable 'i' from 'in'.
    		if i%prime != 0 {
    			out <- i // Send 'i' to channel 'out'.
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:48:19 UTC 2012
    - 1K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/developingPlugins/defaultDependency/kotlin/buildSrc/src/main/java/org/myorg/DataProcessingPlugin.java

    // tag::snippet[]
    public class DataProcessingPlugin implements Plugin<Project> {
        public void apply(Project project) {
            Configuration dataFiles = project.getConfigurations().create("dataFiles", c -> {
                c.setVisible(false);
                c.setCanBeConsumed(false);
                c.setCanBeResolved(true);
                c.setDescription("The data artifacts to be processed for this plugin.");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 830 bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/MultiLineBuildProgressAreaTest.groovy

            fillArea()
    
            when:
            progressArea.setVisible(false)
            redraw()
    
            then:
            0 * ansi._
        }
    
        def "doesn't scroll the area when visibility is set to false"() {
            given:
            fillArea()
            def absoluteDeltaRow = 2
    
            when:
            redraw()
            progressArea.setVisible(false)
            progressArea.scrollDownBy(absoluteDeltaRow)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 8.1K bytes
    - Viewed (0)
Back to top