Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for maxwidth (0.2 sec)

  1. src/main/java/org/codelibs/fess/helper/DocumentHelper.java

            if (content == null) {
                return StringUtil.EMPTY; // empty
            }
    
            String subContent;
            if (content.length() < maxWidth * 2) {
                subContent = content;
            } else {
                subContent = content.substring(0, maxWidth * 2);
            }
    
            final int[] spaceChars = getSpaceChars();
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/compile/internal/test/abiutils_test.go

    // - floating point: X0 - X14
    var configAMD64 = abi.NewABIConfig(9, 15, 0, 1)
    
    func TestMain(m *testing.M) {
    	ssagen.Arch.LinkArch = &x86.Linkamd64
    	ssagen.Arch.REGSP = x86.REGSP
    	ssagen.Arch.MAXWIDTH = 1 << 50
    	types.MaxWidth = ssagen.Arch.MAXWIDTH
    	base.Ctxt = obj.Linknew(ssagen.Arch.LinkArch)
    	base.Ctxt.DiagFunc = base.Errorf
    	base.Ctxt.DiagFlush = base.FlushErrors
    	base.Ctxt.Bso = bufio.NewWriter(os.Stdout)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/pgen.go

    			continue
    		}
    		if !n.Used() {
    			fn.DebugInfo.(*ssa.FuncDebug).OptDcl = fn.Dcl[i:]
    			fn.Dcl = fn.Dcl[:i]
    			break
    		}
    		types.CalcSize(n.Type())
    		w := n.Type().Size()
    		if w >= types.MaxWidth || w < 0 {
    			base.Fatalf("bad width")
    		}
    		if w == 0 && lastHasPtr {
    			// Pad between a pointer-containing object and a zero-sized object.
    			// This prevents a pointer to the zero-sized object from being interpreted
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/wasm/ssa.go

       Global 1 is CTXT (closure pointer)
       Global 2 is GP (goroutine pointer)
    */
    
    func Init(arch *ssagen.ArchInfo) {
    	arch.LinkArch = &wasm.Linkwasm
    	arch.REGSP = wasm.REG_SP
    	arch.MAXWIDTH = 1 << 50
    
    	arch.ZeroRange = zeroRange
    	arch.Ginsnop = ginsnop
    
    	arch.SSAMarkMoves = ssaMarkMoves
    	arch.SSAGenValue = ssaGenValue
    	arch.SSAGenBlock = ssaGenBlock
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/staticinit/sched.go

    			break
    		}
    		if name, offset, ok = StaticLoc(n.X); !ok {
    			break
    		}
    		l := getlit(n.Index)
    		if l < 0 {
    			break
    		}
    
    		// Check for overflow.
    		if n.Type().Size() != 0 && types.MaxWidth/n.Type().Size() <= int64(l) {
    			break
    		}
    		offset += int64(l) * n.Type().Size()
    		return name, offset, true
    	}
    
    	return nil, 0, false
    }
    
    func isSideEffect(n ir.Node) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  7. src/text/tabwriter/tabwriter.go

    //			to the tab width in the viewer displaying the result)
    //	flags		formatting control
    func (b *Writer) Init(output io.Writer, minwidth, tabwidth, padding int, padchar byte, flags uint) *Writer {
    	if minwidth < 0 || tabwidth < 0 || padding < 0 {
    		panic("negative minwidth, tabwidth, or padding")
    	}
    	b.output = output
    	b.minwidth = minwidth
    	b.tabwidth = tabwidth
    	b.padding = padding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  8. src/text/tabwriter/tabwriter_test.go

    	}
    }
    
    func check(t *testing.T, testname string, minwidth, tabwidth, padding int, padchar byte, flags uint, src, expected string) {
    	var b buffer
    	b.init(1000)
    
    	var w Writer
    	w.Init(&b, minwidth, tabwidth, padding, padchar, flags)
    
    	// write all at once
    	title := testname + " (written all at once)"
    	b.clear()
    	write(t, title, &w, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. src/go/printer/printer.go

    	if cfg.Mode&RawFormat == 0 {
    		minwidth := cfg.Tabwidth
    
    		padchar := byte('\t')
    		if cfg.Mode&UseSpaces != 0 {
    			padchar = ' '
    		}
    
    		twmode := tabwriter.DiscardEmptyColumns
    		if cfg.Mode&TabIndent != 0 {
    			minwidth = 0
    			twmode |= tabwriter.TabIndent
    		}
    
    		output = tabwriter.NewWriter(output, minwidth, cfg.Tabwidth, 1, padchar, twmode)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  10. src/go/printer/printer_test.go

    	// filter exports if necessary
    	if mode&export != 0 {
    		ast.FileExports(f) // ignore result
    		f.Comments = nil   // don't print comments that are not in AST
    	}
    
    	// determine printer configuration
    	cfg := Config{Tabwidth: tabwidth}
    	if mode&rawFormat != 0 {
    		cfg.Mode |= RawFormat
    	}
    	if mode&normNumber != 0 {
    		cfg.Mode |= normalizeNumbers
    	}
    
    	// print AST
    	var buf bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top