Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for alignment (0.29 sec)

  1. src/cmd/compile/internal/ssa/_gen/generic.rules

    	&& isSamePtr(p1, p2) && isSamePtr(p2, p3) && isSamePtr(p3, p4) && isSamePtr(p4, p5) && isSamePtr(p5, p6)
    	&& t2.Alignment() <= t1.Alignment()
    	&& t3.Alignment() <= t1.Alignment()
    	&& t4.Alignment() <= t1.Alignment()
    	&& t5.Alignment() <= t1.Alignment()
    	&& t6.Alignment() <= t1.Alignment()
    	&& registerizable(b, t2)
    	&& registerizable(b, t3)
    	&& registerizable(b, t4)
    	&& registerizable(b, t5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	// result: (LoweredMove [t.Alignment()] dst src (ADDI <src.Type> [s-moveSize(t.Alignment(), config)] src) mem)
    	for {
    		s := auxIntToInt64(v.AuxInt)
    		t := auxToType(v.Aux)
    		dst := v_0
    		src := v_1
    		mem := v_2
    		if !(s <= 16 || logLargeCopy(v, s)) {
    			break
    		}
    		v.reset(OpRISCV64LoweredMove)
    		v.AuxInt = int64ToAuxInt(t.Alignment())
    		v0 := b.NewValue0(v.Pos, OpRISCV64ADDI, src.Type)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/data.go

    	// these symbols at the beginning of their respective section if there
    	// aren't real symbols, their alignment might not match the
    	// first symbol alignment. Therefore, there are explicitly put at the
    	// beginning of their section with the same alignment.
    	if !(ctxt.DynlinkingGo() && ctxt.HeadType == objabi.Hdarwin) && !(ctxt.HeadType == objabi.Haix && ctxt.LinkMode == LinkExternal) {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 12 15:10:50 UTC 2024
    - 100.5K bytes
    - Viewed (0)
  4. src/debug/elf/elf.go

    	R_RISCV_GNU_VTINHERIT R_RISCV = 41 /* GNU C++ vtable hierarchy */
    	R_RISCV_GNU_VTENTRY   R_RISCV = 42 /* GNU C++ vtable member usage */
    	R_RISCV_ALIGN         R_RISCV = 43 /* Alignment statement */
    	R_RISCV_RVC_BRANCH    R_RISCV = 44 /* PC-relative branch offset */
    	R_RISCV_RVC_JUMP      R_RISCV = 45 /* PC-relative jump offset */
    	R_RISCV_RVC_LUI       R_RISCV = 46 /* Absolute address */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 00:01:16 UTC 2024
    - 134.6K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/ppc64/asm9.go

    func addpad(pc, a int64, ctxt *obj.Link, cursym *obj.LSym) int {
    	switch a {
    	case 8, 16, 32, 64:
    		// By default function alignment is 16. If an alignment > 16 is
    		// requested then the function alignment must also be promoted.
    		// The function alignment is not promoted on AIX at this time.
    		// TODO: Investigate AIX function alignment.
    		if ctxt.Headtype != objabi.Haix && cursym.Func().Align < int32(a) {
    			cursym.Func().Align = int32(a)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:55:28 UTC 2024
    - 156.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

          result.Append(std::move(pad));
        }
        if (custom_option_alignment_.has_value()) {
          {
            auto alignment = custom_option_alignment_.value();
            std::string pad(alignment - result.size() % alignment, '\0');
            result.Append(std::move(pad));
          }
        }
        auto buffer = std::string(it.second.begin(), it.second.end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/x86/asm6.go

    }
    
    // requireAlignment ensures that the function alignment is at
    // least as high as a, which should be a power of two
    // and between 8 and 2048, inclusive.
    //
    // the boolean result indicates whether the alignment meets those constraints
    func requireAlignment(a int64, ctxt *obj.Link, cursym *obj.LSym) bool {
    	if !((a&(a-1) == 0) && 8 <= a && a <= 2048) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  8. doc/go1.17_spec.html

    Computer architectures may require memory addresses to be <i>aligned</i>;
    that is, for addresses of a variable to be a multiple of a factor,
    the variable's type's <i>alignment</i>.  The function <code>Alignof</code>
    takes an expression denoting a variable of any type and returns the
    alignment of the (type of the) variable in bytes.  For a variable
    <code>x</code>:
    </p>
    
    <pre>
    uintptr(unsafe.Pointer(&amp;x)) % unsafe.Alignof(x) == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  9. src/reflect/all_test.go

    }
    
    func check2ndField(x any, offs uintptr, t *testing.T) {
    	s := ValueOf(x)
    	f := s.Type().Field(1)
    	if f.Offset != offs {
    		t.Error("mismatched offsets in structure alignment:", f.Offset, offs)
    	}
    }
    
    // Check that structure alignment & offsets viewed through reflect agree with those
    // from the compiler itself.
    func TestAlignment(t *testing.T) {
    	type T1inner struct {
    		a int
    	}
    	type T1 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    		}
    		lines[i] = line[len(prefix):]
    	}
    
    	joined := string(bytes.Join(lines, []byte{'\n'}))
    
    	// Convert rest of tabs to spaces since yaml doesnt like yabs
    	// (assuming 2 space alignment)
    	return strings.ReplaceAll(joined, "\t", "  ")
    }
    
    // Creates a *spec.Schema Schema by decoding the given YAML. Panics on error
    func mustSchema(source string) *schema.Structural {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
Back to top