Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,856 for block1 (0.15 sec)

  1. test/chan/select3.go

    	testPanic(always, func() {
    		closedch <- 7
    	})
    
    	// receiving from a non-ready channel always blocks
    	testBlock(always, func() {
    		ch := make(chan int)
    		<-ch
    	})
    
    	// empty selects always block
    	testBlock(always, func() {
    		select {}
    	})
    
    	// selects with only nil channels always block
    	testBlock(always, func() {
    		select {
    		case <-nilch:
    			unreachable()
    		}
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jul 08 02:10:12 UTC 2017
    - 4.1K bytes
    - Viewed (0)
  2. src/cmd/vendor/rsc.io/markdown/parse.go

    	"strings"
    )
    
    /*
    
    list block itself does not appear on stack?
    item does
    end of item returns block,
    new item continues previous block if possible?
    
    if close leaves lines or blocks behind, panic
    
    close(b a list item, parent)
    	if b's parent's last block is list && item can be added to it, do so
    	else return new list
    
    or maybe not parent but just current list of blocks
    
    preserve LinkRefDefs?
    
    */
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

      //   ...
      //
      Block* orig_block_head = op_inst->getBlock();
      Block* orig_block_tail = orig_block_head->splitBlock(op);
      Block* cond_block = builder.createBlock(orig_block_tail);
      Block* body_block = builder.createBlock(orig_block_tail);
    
      // Set argument types for the cond_block to be same as the types of the
      // condition function and argument types for the other two blocks to be same
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/rsc.io/markdown/quote.go

    import (
    	"bytes"
    )
    
    type Quote struct {
    	Position
    	Blocks []Block
    }
    
    func (b *Quote) PrintHTML(buf *bytes.Buffer) {
    	buf.WriteString("<blockquote>\n")
    	for _, c := range b.Blocks {
    		c.PrintHTML(buf)
    	}
    	buf.WriteString("</blockquote>\n")
    }
    
    func (b *Quote) printMarkdown(buf *bytes.Buffer, s mdState) {
    	s.prefix += "> "
    	printMarkdownBlocks(b.Blocks, buf, s)
    }
    
    func trimQuote(s line) (line, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1K bytes
    - Viewed (0)
  5. src/image/jpeg/dct_test.go

    import (
    	"fmt"
    	"math"
    	"math/rand"
    	"strings"
    	"testing"
    )
    
    func benchmarkDCT(b *testing.B, f func(*block)) {
    	b.StopTimer()
    	blocks := make([]block, 0, b.N*len(testBlocks))
    	for i := 0; i < b.N; i++ {
    		blocks = append(blocks, testBlocks[:]...)
    	}
    	b.StartTimer()
    	for i := range blocks {
    		f(&blocks[i])
    	}
    }
    
    func BenchmarkFDCT(b *testing.B) {
    	benchmarkDCT(b, fdct)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/memorymanager/state/state.go

    type ContainerMemoryAssignments map[string]map[string][]Block
    
    // Clone returns a copy of ContainerMemoryAssignments
    func (as ContainerMemoryAssignments) Clone() ContainerMemoryAssignments {
    	clone := make(ContainerMemoryAssignments)
    	for pod := range as {
    		clone[pod] = make(map[string][]Block)
    		for container, blocks := range as[pod] {
    			clone[pod][container] = append([]Block{}, blocks...)
    		}
    	}
    	return clone
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 08 23:10:00 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluatorTest.kt

            )
        }
    
        @Test
        fun `Settings target - top-level - pluginManagement block - empty body`() {
    
            val fragment = fragment("pluginManagement", "...")
            val program = Program.PluginManagement(fragment)
    
            assertThat(
                "reduces to static program that evaluates pluginManagement block then applies default plugin requests",
                partialEvaluationOf(
                    program,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 38.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/func_test.go

    	blocks := make(map[string]*Block)
    	values := make(map[string]*Value)
    	// Create all the blocks and values.
    	for _, bloc := range blocs {
    		b := f.NewBlock(bloc.control.kind)
    		blocks[bloc.name] = b
    		for _, valu := range bloc.valus {
    			// args are filled in the second pass.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:01:04 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/branchelim_test.go

    				}
    				if fun.blocks["entry"].Kind != BlockExit {
    					t.Errorf("expected entry to be BlockExit; found kind %s", fun.blocks["entry"].Kind.String())
    				}
    			} else {
    				if len(fun.f.Blocks) != 3 {
    					t.Fatalf("expected 3 block after branchelim and deadcode; found %d", len(fun.f.Blocks))
    				}
    			}
    		})
    	}
    }
    
    // Test that a trivial if/else is eliminated
    func TestBranchElimIfElse(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 5.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/flagalloc.go

    					p := e.b
    					end[p.ID] = flag
    				}
    			}
    		}
    	}
    
    	// For blocks which have a flags control value, that's the only value
    	// we can leave in the flags register at the end of the block. (There
    	// is no place to put a flag regeneration instruction.)
    	for _, b := range f.Blocks {
    		if b.Kind == BlockDefer {
    			// Defer blocks internally use/clobber the flags value.
    			end[b.ID] = nil
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 6.7K bytes
    - Viewed (0)
Back to top