Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for badwidth (0.12 sec)

  1. src/fmt/doc.go

    		Printf("hi", "guys"):      hi%!(EXTRA string=guys)
    	Too few arguments: %!verb(MISSING)
    		Printf("hi%d"):            hi%!d(MISSING)
    	Non-int for width or precision: %!(BADWIDTH) or %!(BADPREC)
    		Printf("%*s", 4.5, "hi"):  %!(BADWIDTH)hi
    		Printf("%.*s", 4.5, "hi"): %!(BADPREC)hi
    	Invalid or invalid use of argument index: %!(BADINDEX)
    		Printf("%*[2]d", 7):       %!d(BADINDEX)
    		Printf("%.[2]d", 7):       %!d(BADINDEX)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    	{"%0*d", args(uint64(4), 42), "0042"},
    	{"%0*d", args('\x04', 42), "0042"},
    	{"%0*d", args(uintptr(4), 42), "0042"},
    
    	// erroneous
    	{"%*d", args(nil, 42), "%!(BADWIDTH)42"},
    	{"%*d", args(int(1e7), 42), "%!(BADWIDTH)42"},
    	{"%*d", args(int(-1e7), 42), "%!(BADWIDTH)42"},
    	{"%.*d", args(nil, 42), "%!(BADPREC)42"},
    	{"%.*d", args(-1, 42), "%!(BADPREC)42"},
    	{"%.*d", args(int(1e7), 42), "%!(BADPREC)42"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/typecheck.go

    		if dostrcmp > 1 {
    			// Already in the process of diagnosing an error.
    			return f1
    		}
    		if f2 != nil {
    			base.Errorf("%v is both field and method", n.Sel)
    		}
    		if f1.Offset == types.BADWIDTH {
    			base.Fatalf("Lookdot badwidth t=%v, f1=%v@%p", t, f1, f1)
    		}
    		n.Selection = f1
    		n.SetType(f1.Type)
    		if t.IsInterface() {
    			if n.X.Type().IsPtr() {
    				star := ir.NewStarExpr(base.Pos, n.X)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/type.go

    	// the function name node.
    	Nname Object
    
    	// Offset in bytes of this field or method within its enclosing struct
    	// or interface Type. For parameters, this is BADWIDTH.
    	Offset int64
    }
    
    const (
    	fieldIsDDD = 1 << iota // field is ... argument
    	fieldNointerface
    )
    
    func (f *Field) IsDDD() bool       { return f.flags&fieldIsDDD != 0 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    		if tmp, ok := l.(*ir.Name); !ok || !tmp.AutoTemp() || !types.Identical(tmp.Type(), r.Type) {
    			base.FatalfAt(l.Pos(), "assigning %v to %+v", r.Type, l)
    		}
    
    		res := ir.NewResultExpr(base.Pos, nil, types.BADWIDTH)
    		res.Index = int64(i)
    		res.SetType(r.Type)
    		res.SetTypecheck(1)
    
    		nn.Append(ir.NewAssignStmt(base.Pos, l, res))
    	}
    	return nn
    }
    
    // check assign expression list to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  6. src/fmt/print.go

    	mapString         = "map["
    	percentBangString = "%!"
    	missingString     = "(MISSING)"
    	badIndexString    = "(BADINDEX)"
    	panicString       = "(PANIC="
    	extraString       = "%!(EXTRA "
    	badWidthString    = "%!(BADWIDTH)"
    	badPrecString     = "%!(BADPREC)"
    	noVerbString      = "%!(NOVERB)"
    	invReflectString  = "<invalid reflect.Value>"
    )
    
    // State represents the printer state passed to custom formatters.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  7. internal/bpool/bpool.go

    func NewBytePoolCap(maxSize uint64, width int, capwidth int) (bp *BytePoolCap) {
    	if capwidth > 0 && capwidth < 64 {
    		panic("buffer capped with smaller than 64 bytes is not supported")
    	}
    	if capwidth > 0 && width > capwidth {
    		panic("buffer length cannot be > capacity of the buffer")
    	}
    	return &BytePoolCap{
    		c:    make(chan []byte, maxSize),
    		w:    width,
    		wcap: capwidth,
    	}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 19 16:44:59 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

      // type.
      const int bitwidth = storage_type.getIntOrFloatBitWidth();
      const bool is_weight_buffer = is_constant && (bitwidth == 8);
    
      int64_t storage_min =
          QuantizedType::getDefaultMinimumForInteger(is_signed, bitwidth) +
          static_cast<int>(is_weight_buffer);
      int64_t storage_max =
          QuantizedType::getDefaultMaximumForInteger(is_signed, bitwidth);
      uint32_t flags =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. operator/pkg/util/progress/progress.go

    		// If we aren't a terminal, no need to spam extra lines
    		prefix = `{{ yellow "-" }} `
    	}
    	// reduce by 2 to allow for the "- " that will be added below
    	maxWidth -= 2
    	if maxWidth > 0 && len(msg) > maxWidth {
    		return prefix + msg[:maxWidth-3] + "..."
    	}
    	// cycle will alternate between "-" and " ". "-" is given multiple times to avoid quick flashing back and forth
    	return prefix + msg
    }
    
    // For testing only
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types/size.go

    				t.SetNotInHeap(true)
    			}
    		}
    
    		offset += f.Type.width
    
    		maxwidth := MaxWidth
    		// On 32-bit systems, reflect tables impose an additional constraint
    		// that each field start offset must fit in 31 bits.
    		if maxwidth < 1<<32 {
    			maxwidth = 1<<31 - 1
    		}
    		if offset >= maxwidth {
    			base.ErrorfAt(typePos(t), 0, "type %L too large", t)
    			offset = 8 // small but nonzero
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
Back to top