Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for widths (0.27 sec)

  1. src/text/tabwriter/tabwriter.go

    			if c.width > 0 || c.htab {
    				discardable = false
    			}
    		}
    		// column block end
    
    		// discard empty columns if necessary
    		if discardable && b.flags&DiscardEmptyColumns != 0 {
    			width = 0
    		}
    
    		// format and print all columns to the right of this column
    		// (we know the widths of this column and all columns to the left)
    		b.widths = append(b.widths, width) // push width
    		pos = b.format(pos, line0, this)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/base/timings.go

    }
    
    func (lines lines) write(w io.Writer) {
    	// determine column widths and contents
    	var widths []int
    	var number []bool
    	for _, line := range lines {
    		for i, col := range line {
    			if i < len(widths) {
    				if len(col) > widths[i] {
    					widths[i] = len(col)
    				}
    			} else {
    				widths = append(widths, len(col))
    				number = append(number, isnumber(col)) // first line determines column contents
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/table/writer.go

    func max(x, y int) int {
    	if x < y {
    		return y
    	}
    	return x
    }
    
    func getMaxWidths(output [][]Cell) []int {
    	widths := make([]int, len(output[0]))
    	for _, row := range output {
    		for i, col := range row {
    			widths[i] = max(widths[i], len(col.String()))
    		}
    	}
    	return widths
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Oct 08 04:41:42 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  4. src/internal/abi/abi_generic.go

    	// point registers for the ABI or that floating point values will be
    	// passed via the softfloat ABI.
    	//
    	// For platforms that support larger floating point register widths,
    	// such as x87's 80-bit "registers" (not that we support x87 currently),
    	// use 8.
    	EffectiveFloatRegSize = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:38:52 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. test/fixedbugs/issue32680.go

    package main
    
    var foo = []byte{105, 57, 172, 152}
    
    func main() {
    	for i := 0; i < len(foo); i += 4 {
    		// Requires inlining and non-constant i
    		// Note the bug/fix also apply to different widths, but was unable to reproduce for those.
    		println(readLittleEndian32_2(foo[i], foo[i+1], foo[i+2], foo[i+3]))
    	}
    }
    
    func readLittleEndian32_2(a, b, c, d byte) uint32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 20 16:56:47 UTC 2019
    - 687 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc

      bool has_unknown_shape = false;
      auto get_size = [&](TypeRange types) {
        int64_t size = 0;
        for (auto t : types) {
          auto tensor_type = mlir::cast<TensorType>(t);
          // Ignore types with undefined bit widths.
          if (!tensor_type.getElementType().isIntOrFloat()) continue;
          if (!tensor_type.hasStaticShape()) {
            has_unknown_shape = true;
            return size;
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/size.go

    		}
    		CalcStructSize(t)
    		w = t.width
    
    	// make fake type to check later to
    	// trigger function argument computation.
    	case TFUNC:
    		t1 := NewFuncArgs(t)
    		CheckSize(t1)
    		w = int64(PtrSize) // width of func type is pointer
    		t.intRegs = 1
    		t.setAlg(ANOEQ)
    		t.ptrBytes = int64(PtrSize)
    
    	// function is 3 cated structures;
    	// compute their widths as side-effect.
    	case TFUNCARGS:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go

    	case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
    		// use Convert to set into int alias types and different int widths correctly
    		v.Set(reflect.ValueOf(dataInt).Convert(t))
    
    	case reflect.Float32, reflect.Float64:
    		// use Convert to set into float types
    		v.Set(reflect.ValueOf(float32(dataInt) + 0.5).Convert(t))
    
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. src/image/png/writer.go

    						// This code does the same as color.NRGBAModel.Convert(
    						// rgba.At(x, y)).(color.NRGBA) but with no extra memory
    						// allocations or interface/function call overhead.
    						//
    						// The multiplier m combines 0x101 (which converts
    						// 8-bit color to 16-bit color) and 0xffff (which, when
    						// combined with the division-by-a, converts from
    						// alpha-premultiplied to non-alpha-premultiplied).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. src/testing/benchmark.go

    		buf.WriteByte('\t')
    		prettyPrint(buf, r.Extra[k], k)
    	}
    	return buf.String()
    }
    
    func prettyPrint(w io.Writer, x float64, unit string) {
    	// Print all numbers with 10 places before the decimal point
    	// and small numbers with four sig figs. Field widths are
    	// chosen to fit the whole part in 10 places while aligning
    	// the decimal point of all fractional formats.
    	var format string
    	switch y := math.Abs(x); {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top