Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Alignment (0.23 sec)

  1. src/cmd/compile/internal/types2/sizes.go

    //     struct's alignment.
    //   - All other types have size WordSize.
    //   - Arrays and structs are aligned per spec definition; all other
    //     types are naturally aligned with a maximum alignment MaxAlign.
    //
    // *StdSizes implements Sizes.
    type StdSizes struct {
    	WordSize int64 // word size in bytes - must be >= 4 (32bits)
    	MaxAlign int64 // maximum alignment in bytes - must be >= 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. src/go/types/gcsizes.go

    type gcSizes struct {
    	WordSize int64 // word size in bytes - must be >= 4 (32bits)
    	MaxAlign int64 // maximum alignment in bytes - must be >= 1
    }
    
    func (s *gcSizes) Alignof(T Type) (result int64) {
    	defer func() {
    		assert(result >= 1)
    	}()
    
    	// For arrays and structs, alignment is defined in terms
    	// of alignment of the elements and fields, respectively.
    	switch t := under(T).(type) {
    	case *Array:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. platforms/jvm/java-platform/src/integTest/groovy/org/gradle/integtests/resolve/platforms/NativeAlignmentWithJavaPlatformResolveIntegrationTest.groovy

                    id 'java-platform'
                }
    
                dependencies {
                    constraints {
                        api(project(":core")) { because "platform alignment" }
                        api(project(":lib")) { because "platform alignment" }
                    }
                }
    
                publishing {
                    publications {
                        maven(MavenPublication) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 13 19:52:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/go/types/sizes.go

    //     struct's alignment.
    //   - All other types have size WordSize.
    //   - Arrays and structs are aligned per spec definition; all other
    //     types are naturally aligned with a maximum alignment MaxAlign.
    //
    // *StdSizes implements Sizes.
    type StdSizes struct {
    	WordSize int64 // word size in bytes - must be >= 4 (32bits)
    	MaxAlign int64 // maximum alignment in bytes - must be >= 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. test/fixedbugs/issue67160.go

    // T is "special" because of the unnamed field, so it needs a generated equality function.
    // T is an odd number of bytes in size and has alignment 1.
    type T struct {
    	src [8]byte
    	_   byte
    }
    
    // U contains 8 copies of T, each at a different %8 alignment.
    type U [8]T
    
    //go:noinline
    func f(x, y *U) bool {
    	return *x == *y
    }
    
    func main() {
    	var a U
    	_ = f(&a, &a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 15:34:04 UTC 2024
    - 767 bytes
    - Viewed (0)
  6. src/runtime/mksizeclasses.go

    		if powerOfTwo(size) { // bump alignment once in a while
    			if size >= 2048 {
    				align = 256
    			} else if size >= 128 {
    				align = size / 8
    			} else if size >= 32 {
    				align = 16 // heap bitmaps assume 16 byte alignment for allocations >= 32 bytes.
    			}
    		}
    		if !powerOfTwo(align) {
    			panic("incorrect alignment")
    		}
    
    		// Make the allocnpages big enough that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/gcsizes.go

    type gcSizes struct {
    	WordSize int64 // word size in bytes - must be >= 4 (32bits)
    	MaxAlign int64 // maximum alignment in bytes - must be >= 1
    }
    
    func (s *gcSizes) Alignof(T Type) (result int64) {
    	defer func() {
    		assert(result >= 1)
    	}()
    
    	// For arrays and structs, alignment is defined in terms
    	// of alignment of the elements and fields, respectively.
    	switch t := under(T).(type) {
    	case *Array:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. tensorflow/c/tf_tensor.h

        void (*deallocator)(void* data, size_t len, void* arg),
        void* deallocator_arg);
    
    // Returns the alignment, in bytes, required for allocating aligned tensors.
    //
    // This can be used in combination with TF_NewTensor to manually manage
    // memory while ensuring the resulting tensors satisfy TensorFlow's
    // memory alignment preferences.
    TF_CAPI_EXPORT extern size_t TF_TensorDefaultAlignment();
    
    // Allocate and return a new Tensor.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. doc/next/5-toolchain.md

    a cost of an additional 0.1% text and binary size.  This is currently only implemented
    on 386 and amd64 because it has not shown an improvement on other platforms.
    Hot block alignment can be disabled with `-gcflags=[<packages>=]-d=alignhot=0`
    
    ## Assembler {#assembler}
    
    ## Linker {#linker}
    
    <!-- go.dev/issue/67401, CL 585556, CL 587220, and many more -->
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:18:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. src/runtime/sizeclasses.go

    //    65      27264       81920        3         128     10.00%        128
    //    66      28672       57344        2           0      4.91%       4096
    //    67      32768       32768        1           0     12.50%       8192
    
    // alignment  bits  min obj size
    //         8     3             8
    //        16     4            32
    //        32     5           256
    //        64     6           512
    //       128     7           768
    //      4096    12         28672
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.2K bytes
    - Viewed (0)
Back to top