Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 89 for aligned2 (0.18 sec)

  1. src/hash/crc32/crc32_ppc64le.go

    			newlen := vecMinLen - align
    			crc = ppc64SlicingUpdateBy8(crc, archCastagnoliTable8, p[:newlen])
    			p = p[newlen:]
    		}
    		// p should be aligned now
    		aligned := len(p) & ^vecAlignMask
    		crc = vectorCrc32(crc, crcCast, p[:aligned])
    		p = p[aligned:]
    	}
    	if len(p) == 0 {
    		return crc
    	}
    	return ppc64SlicingUpdateBy8(crc, archCastagnoliTable8, p)
    }
    
    func archAvailableIEEE() bool {
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  2. src/hash/crc32/crc32_s390x.go

    	if !hasVX {
    		panic("not available")
    	}
    	// Use vectorized function if data length is above threshold.
    	if len(p) >= vxMinLen {
    		aligned := len(p) & ^vxAlignMask
    		crc = vectorizedCastagnoli(crc, p[:aligned])
    		p = p[aligned:]
    	}
    	if len(p) == 0 {
    		return crc
    	}
    	return slicingUpdate(crc, archCastagnoliTable8, p)
    }
    
    func archAvailableIEEE() bool {
    	return hasVX
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  3. src/crypto/subtle/xor_amd64.s

    	JZ    aligned
    
    not_aligned:
    	TESTQ $7, DX           // AND $7 & len, if not zero jump to loop_1b.
    	JNE   loop_1b
    	SUBQ  $8, DX           // XOR 8bytes backwards.
    	MOVQ  (SI)(DX*1), DI
    	MOVQ  (CX)(DX*1), AX
    	XORQ  AX, DI
    	MOVQ  DI, (BX)(DX*1)
    	CMPQ  DX, $16          // if len is greater or equal 16 here, it must be aligned.
    	JGE   aligned
    
    ret:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 18:14:32 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/go/printer/testdata/comments2.golden

    		println("test")
    	}
    }
    
    func issue5623() {
    L:
    	_ = yyyyyyyyyyyyyyyy			// comment - should be aligned
    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	/* comment */
    
    	_ = yyyyyyyyyyyyyyyy			/* comment - should be aligned */
    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	// comment
    
    LLLLLLL:
    	_ = yyyyyyyyyyyyyyyy			// comment - should be aligned
    	_ = xxxxxxxxxxxxxxxxxxxxxxxxxxxx	// comment
    
    LL:
    LLLLL:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:50 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. maven-compat/src/test/java/org/apache/maven/project/path/DefaultPathTranslatorTest.java

            String aligned = new DefaultPathTranslator().alignToBaseDirectory("${basedir}", basedir);
    
            assertEquals(basedir.getAbsolutePath(), aligned);
        }
    
        @Test
        void testAlignToBasedirWhereBasedirExpressionIsTheValuePrefix() {
            File basedir = new File(System.getProperty("java.io.tmpdir"), "test").getAbsoluteFile();
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. src/runtime/memclr_arm64.s

    	STP	(ZR, ZR), (R0)
    	RET
    
    zero_by_16:
    	// n greater than 16 bytes, check if the start address is aligned
    	NEG	R0, R4
    	ANDS	$15, R4, R4
    	// Try zeroing using zva if the start address is aligned with 16
    	BEQ	try_zva
    
    	// Non-aligned store
    	STP	(ZR, ZR), (R0)
    	// Make the destination aligned
    	SUB	R4, R1, R1
    	ADD	R4, R0, R0
    	B	try_zva
    
    tail_maybe_long:
    	CMP	$64, R1
    	BHS	no_zva
    
    tail63:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 18:26:13 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  7. src/crypto/subtle/xor_generic.go

    	y := unsafe.Slice(yb, n)
    
    	if supportsUnaligned || aligned(dstb, xb, yb) {
    		xorLoop(words(dst), words(x), words(y))
    		if uintptr(n)%wordSize == 0 {
    			return
    		}
    		done := n &^ int(wordSize-1)
    		dst = dst[done:]
    		x = x[done:]
    		y = y[done:]
    	}
    	xorLoop(dst, x, y)
    }
    
    // aligned reports whether dst, x, and y are all word-aligned pointers.
    func aligned(dst, x, y *byte) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 31 23:25:07 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. src/runtime/tls_arm.s

    // To do that, the stack pointer must be 8-byte-aligned
    // on some systems, notably FreeBSD.
    // The ARM ABI says the stack pointer must be 8-byte-aligned
    // on entry to any function, but only FreeBSD's C library seems to care.
    // The caller was 8-byte aligned, but we push an LR.
    // Declare a dummy word ($4, not $0) to make sure the
    // frame is 8 bytes and stays 8-byte-aligned.
    TEXT runtimeĀ·_initcgo(SB),NOSPLIT,$4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 20:38:07 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. src/runtime/runtime_mmap_test.go

    	}
    }
    
    func TestPhysPageSize(t *testing.T) {
    	// Mmap fails if the address is not page aligned, so we can
    	// use this to test if the page size is the true page size.
    	ps := runtime.GetPhysPageSize()
    
    	// Get a region of memory to play with. This should be page-aligned.
    	b, err := runtime.Mmap(nil, 2*ps, 0, runtime.MAP_ANON|runtime.MAP_PRIVATE, -1, 0)
    	if err != 0 {
    		t.Fatalf("Mmap: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. src/runtime/align_test.go

    			// type the selector arg on some platforms.
    			return
    		}
    		if p, ok := t.(*types.Pointer); ok {
    			// Note: we assume here that the pointer p in p.foo is properly
    			// aligned. We just check that foo is at a properly aligned offset.
    			t = p.Elem()
    		} else {
    			v.checkAddr(n.X)
    		}
    		if t.Underlying() == t {
    			v.t.Errorf("analysis can't handle unnamed type %s %v", v.fset.Position(n.Pos()), t)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 08 14:52:12 UTC 2023
    - 5.4K bytes
    - Viewed (0)
Back to top