Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for tozero (0.33 sec)

  1. src/cmd/covdata/tool_test.go

    						t.Errorf("tag %s: match Atoi failed on %s",
    							check.tag, m[1])
    						continue
    					}
    					if check.zero && i != 0 {
    						t.Errorf("tag %s: match zero failed on %s",
    							check.tag, m[1])
    					} else if check.nonzero && i == 0 {
    						t.Errorf("tag %s: match nonzero failed on %s",
    							check.tag, m[1])
    					}
    				}
    				break
    			}
    		}
    		if !found && !check.negate {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/staticinit/sched.go

    			}
    			a := a.(*ir.KeyExpr)
    			s.addvalue(p, -1, a.Value)
    		}
    	}
    }
    
    func (s *Schedule) addvalue(p *Plan, xoffset int64, n ir.Node) {
    	// special case: zero can be dropped entirely
    	if ir.IsZero(n) {
    		return
    	}
    
    	// special case: inline struct and array (not slice) literals
    	if isvaluelit(n) {
    		s.initplan(n)
    		q := s.Plans[n]
    		for _, qe := range q.E {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  3. association.go

    				if _, zero := rel.Field.ValueOf(association.DB.Statement.Context, data); !zero {
    					fieldValue := reflect.Indirect(rel.Field.ReflectValueOf(association.DB.Statement.Context, data))
    					primaryValues := make([]interface{}, len(rel.FieldSchema.PrimaryFields))
    
    					switch fieldValue.Kind() {
    					case reflect.Slice, reflect.Array:
    						validFieldValues := reflect.Zero(rel.Field.IndirectFieldType)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/ssa.go

    		if rhs != nil {
    			switch rhs.Op() {
    			case ir.OSTRUCTLIT, ir.OARRAYLIT, ir.OSLICELIT:
    				// All literals with nonzero fields have already been
    				// rewritten during walk. Any that remain are just T{}
    				// or equivalents. Use the zero value.
    				if !ir.IsZero(rhs) {
    					s.Fatalf("literal with nonzero value in SSA: %v", rhs)
    				}
    				rhs = nil
    			case ir.OAPPEND:
    				rhs := rhs.(*ir.CallExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/magic.go

    // But since x ends in k zeroes all the rotated bits would be zero too.
    // So RotRight(x, k) == ⎣x/(2^k)⎦ <= ⎣a/(2^k)⎦
    //
    // If x does not end in k zero bits, then RotRight(x, k)
    // has some non-zero bits in the k highest bits.
    // ⎣x/(2^k)⎦ has all zeroes in the k highest bits,
    // so RotRight(x, k) > ⎣x/(2^k)⎦
    //
    // Finally, if x > a and has k trailing zero bits, then RotRight(x, k) == ⎣x/(2^k)⎦
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:25 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func mapaccess1_fast64(mapType *byte, hmap map[any]any, key uint64) (val *any)
    func mapaccess1_faststr(mapType *byte, hmap map[any]any, key string) (val *any)
    func mapaccess1_fat(mapType *byte, hmap map[any]any, key *any, zero *byte) (val *any)
    func mapaccess2(mapType *byte, hmap map[any]any, key *any) (val *any, pres bool)
    func mapaccess2_fast32(mapType *byte, hmap map[any]any, key uint32) (val *any, pres bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  7. src/cmd/go/internal/tool/tool.go

    		// Only print about the exit status if the command
    		// didn't even run (not an ExitError) or it didn't exit cleanly
    		// or we're printing command lines too (-x mode).
    		// Assume if command exited cleanly (even with non-zero status)
    		// it printed any messages it wanted to print.
    		if e, ok := err.(*exec.ExitError); !ok || !e.Exited() || cfg.BuildX {
    			fmt.Fprintf(os.Stderr, "go tool %s: %s\n", toolName, err)
    		}
    		base.SetExitStatus(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 18:02:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/parse.go

    			}
    			divisor := p.factor()
    			if divisor == 0 {
    				p.errorf("division by zero")
    			} else {
    				value /= divisor
    			}
    		case '%':
    			p.next()
    			divisor := p.factor()
    			if int64(value) < 0 {
    				p.errorf("modulo of value with high bit set")
    			}
    			if divisor == 0 {
    				p.errorf("modulo by zero")
    			} else {
    				value %= divisor
    			}
    		case lex.LSH:
    			p.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 14:34:57 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. src/cmd/go/scriptreadme_test.go

    often the name of a go subcommand (list, build, test, ...) or concept (vendor, pattern).
    
    Each script is a text archive (go doc internal/txtar).
    The script begins with an actual command script to run
    followed by the content of zero or more supporting files to
    create in the script's temporary file system before it starts executing.
    
    As an example, run_hello.txt says:
    
    	# hello world
    	go run hello.go
    	stderr 'hello world'
    	! stdout .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/initorder.go

    	// (the one with the fewest dependencies) and its edges from the graph,
    	// repeatedly, until there are no nodes left.
    	// In a valid Go program, those nodes always have zero dependencies (after
    	// removing all incoming dependencies), otherwise there are initialization
    	// cycles.
    	emitted := make(map[*declInfo]bool)
    	for len(pq) > 0 {
    		// get the next node
    		n := heap.Pop(&pq).(*graphNode)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top