Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for alignof (0.3 sec)

  1. doc/go1.17_spec.html

    <li>For a variable <code>x</code> of any type: <code>unsafe.Alignof(x)</code> is at least 1.
    </li>
    
    <li>For a variable <code>x</code> of struct type: <code>unsafe.Alignof(x)</code> is the largest of
       all the values <code>unsafe.Alignof(x.f)</code> for each field <code>f</code> of <code>x</code>, but at least 1.
    </li>
    
    <li>For a variable <code>x</code> of array type: <code>unsafe.Alignof(x)</code> is the same as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    				wantParens = true
    			case op.Name == `operator"" `:
    				wantParens = false
    			case op.Name == "&":
    				wantParens = false
    			case isDelete:
    				wantParens = false
    			case op.Name == "alignof ":
    				wantParens = true
    			case op.Name == "sizeof ":
    				wantParens = true
    			case op.Name == "typeid ":
    				wantParens = true
    			default:
    				wantParens = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/data.go

    	min := int32(thearch.Minalign)
    	align := ldr.SymAlign(s)
    	if align >= min {
    		return align
    	} else if align != 0 {
    		return min
    	}
    	align = int32(thearch.Maxalign)
    	ssz := ldr.SymSize(s)
    	for int64(align) > ssz && align > min {
    		align >>= 1
    	}
    	ldr.SetSymAlign(s, align)
    	return align
    }
    
    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/reflect/value.go

    	} else if v.flag&flagIndir != 0 && !t.IfaceIndir() {
    		*(*unsafe.Pointer)(p) = *(*unsafe.Pointer)(v.ptr)
    	} else {
    		*(*unsafe.Pointer)(p) = v.ptr
    	}
    }
    
    // align returns the result of rounding x up to a multiple of n.
    // n must be a power of two.
    func align(x, n uintptr) uintptr {
    	return (x + n - 1) &^ (n - 1)
    }
    
    // callMethod is the call implementation used by a function returned
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

    // used by the TOCO export. (It does not explain rationale for this choice.)
    constexpr size_t kInitialBufferSize = 10240;
    
    // Flatbuffer fields to be padded to 16 bytes aligned.
    constexpr size_t kFbAlignment = 16;
    
    // Set `isSigned` to false if the `type` is an 8-bit unsigned integer type.
    // Since tflite doesn't support unsigned for other types, returns error if
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/arm64/asm7.go

    		// 2-byte and 1-byte aligned addresses, so the address of load/store must be aligned.
    		// Also symbols with prefix of "go:string." are Go strings, which will go into
    		// the symbol table, their addresses are not necessary aligned, rule this out.
    		align := int64(1 << sz)
    		if o.a1 == C_ADDR && p.From.Offset%align == 0 && !strings.HasPrefix(p.From.Sym.Name, "go:string.") ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 201.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      // CHECK-DAG: %[[ZEROF:.*]] = "tf.Const"() <{value = dense<0.000000e+00> : tensor<f32>}> : () -> tensor<f32>
      // CHECK-DAG: "tf.MatrixDiagV3"(%arg0, %[[ZEROI]], %[[MINUS1]], %[[MINUS1]], %[[ZEROF]]) <{align = "RIGHT_LEFT"}> {device = "/job:localhost/replica:0/task:0/device:GPU:0"} : (tensor<2x4xf32>, tensor<i32>, tensor<i32>, tensor<i32>, tensor<f32>) -> tensor<2x4x4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/x86/asm6.go

    )
    
    // Instruction layout.
    
    // Loop alignment constants:
    // want to align loop entry to loopAlign-byte boundary,
    // and willing to insert at most maxLoopPad bytes of NOP to do so.
    // We define a loop entry as the target of a backward jump.
    //
    // gcc uses maxLoopPad = 10 for its 'generic x86-64' config,
    // and it aligns all jump targets, not just backward jump targets.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  9. cmd/server_test.go

    	getMD5 := getMD5Hash(getContent)
    
    	// Compare putContent and getContent.
    	c.Assert(putMD5, getMD5)
    }
    
    // TestGetPartialObjectMisAligned - tests get object partially miss-aligned.
    // create a large buffer of miss-aligned data and upload it.
    // then make partial range requests to while fetching it back and assert the response content.
    func (s *TestSuiteCommon) TestGetPartialObjectMisAligned(c *check) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  10. src/debug/elf/elf.go

    	Paddr  uint32 /* Physical address (not used). */
    	Filesz uint32 /* Size of contents in file. */
    	Memsz  uint32 /* Size of contents in memory. */
    	Flags  uint32 /* Access permission flags. */
    	Align  uint32 /* Alignment in memory and file. */
    }
    
    // ELF32 Dynamic structure. The ".dynamic" section contains an array of them.
    type Dyn32 struct {
    	Tag int32  /* Entry type. */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 00:01:16 UTC 2024
    - 134.6K bytes
    - Viewed (0)
Back to top