Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 248 for alignment (0.28 sec)

  1. src/cmd/compile/internal/ssa/nilcheck.go

    						continue
    					}
    				case auxInt32:
    					// Mips uses this auxType for atomic add constant. It does not affect the effective address.
    				case auxInt64:
    					// ARM uses this auxType for duffcopy/duffzero/alignment info.
    					// It does not affect the effective address.
    				case auxNone:
    					// offset is zero.
    				default:
    					v.Fatalf("can't handle aux %s (type %d) yet\n", v.auxString(), int(opcodeTable[v.Op].auxType))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:45:54 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  2. src/runtime/malloc_test.go

    type obj12 struct {
    	a uint64
    	b uint32
    }
    
    func TestTinyAllocIssue37262(t *testing.T) {
    	if runtime.Raceenabled {
    		t.Skip("tinyalloc suppressed when running in race mode")
    	}
    	// Try to cause an alignment access fault
    	// by atomically accessing the first 64-bit
    	// value of a tiny-allocated object.
    	// See issue 37262 for details.
    
    	// GC twice, once to reach a stable heap state
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/objfile.go

    		// compiler-emitted funcdata. If we dedup a string symbol and
    		// a non-string symbol with the same content, we should keep
    		// the largest alignment.
    		// TODO: maybe the compiler could set the alignment for all
    		// data symbols more carefully.
    		switch {
    		case strings.HasPrefix(s.Name, "go:string."),
    			strings.HasPrefix(name, "type:.namedata."),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/net/route/address.go

    				return nil, err
    			}
    			as[i] = a
    			l := roundup(int(b[0]))
    			if len(b) < l {
    				return nil, errMessageTooShort
    			}
    			b = b[l:]
    		}
    	}
    	// The only remaining bytes in b should be alignment.
    	// However, under some circumstances DragonFly BSD appears to put
    	// more addresses in the message than are indicated in the address
    	// bitmask, so don't check for this.
    	return as[:], nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  5. src/cmd/link/internal/loader/loader_test.go

    		}
    		nv := int64(i + 101)
    		ldr.SetSymValue(s, nv)
    		if v := ldr.SymValue(s); v != nv {
    			t.Errorf("ldr.SetValue(%d,%d): expected %d got %d\n", s, nv, nv, v)
    		}
    	}
    
    	// Check/set alignment
    	es3al := ldr.SymAlign(es3)
    	if es3al != 0 {
    		t.Errorf("SymAlign(es3): expected 0, got %d", es3al)
    	}
    	ldr.SetSymAlign(es3, 128)
    	es3al = ldr.SymAlign(es3)
    	if es3al != 128 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:09 UTC 2024
    - 12K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/alignment/ForcingUsingStrictlyPlatformAlignmentTest.groovy

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.integtests.resolve.alignment
    
    import org.gradle.integtests.fixtures.GradleMetadataResolveRunner
    import org.gradle.integtests.fixtures.RequiredFeature
    import org.gradle.integtests.fixtures.publish.RemoteRepositorySpec
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  7. src/sync/atomic/doc.go

    //
    // On non-Linux ARM, the 64-bit functions use instructions unavailable before the ARMv6k core.
    //
    // On ARM, 386, and 32-bit MIPS, it is the caller's responsibility to arrange
    // for 64-bit alignment of 64-bit words accessed atomically via the primitive
    // atomic functions (types [Int64] and [Uint64] are automatically aligned).
    // The first word in an allocated struct, array, or slice; in a global
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/order.go

    	default:
    		// Unsafe cast through memory.
    		// We'll need to do a load with type kt. Create a temporary of type kt to
    		// ensure sufficient alignment. nt may be under-aligned.
    		if uint8(kt.Alignment()) < uint8(nt.Alignment()) {
    			base.Fatalf("mapKeyTemp: key type is not sufficiently aligned, kt=%v nt=%v", kt, nt)
    		}
    		tmp := o.newTemp(kt, true)
    		// *(*nt)(&tmp) = n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  9. src/runtime/runtime_test.go

    	}
    	type T3 struct {
    		n byte
    		z [4]struct{}
    	}
    	if unsafe.Sizeof(T3{}) != 2 {
    		t.Errorf("sizeof(%#v)==%d, want 2", T3{}, unsafe.Sizeof(T3{}))
    	}
    	// make sure padding can double for both zerosize and alignment
    	type T4 struct {
    		a int32
    		b int16
    		c int8
    		z struct{}
    	}
    	if unsafe.Sizeof(T4{}) != 8 {
    		t.Errorf("sizeof(%#v)==%d, want 8", T4{}, unsafe.Sizeof(T4{}))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/runtime/asm_arm.s

    // Called on a system stack, and there may be no g yet (during needm).
    TEXT ·asmcgocall_no_g(SB),NOSPLIT,$0-8
    	MOVW	fn+0(FP), R1
    	MOVW	arg+4(FP), R0
    	MOVW	R13, R2
    	SUB	$32, R13
    	BIC	$0x7, R13	// alignment for gcc ABI
    	MOVW	R2, 8(R13)
    	BL	(R1)
    	MOVW	8(R13), R2
    	MOVW	R2, R13
    	RET
    
    // func asmcgocall(fn, arg unsafe.Pointer) int32
    // Call fn(arg) on the scheduler stack,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:00:52 UTC 2024
    - 32.1K bytes
    - Viewed (0)
Back to top