Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for shr2 (0.04 sec)

  1. test/fixedbugs/issue23812.go

    	got := foo(1)
    	if want != got {
    		panic(fmt.Sprintf("want %x, got %x", want, got))
    	}
    }
    
    func foo(a int32) int32 {
    	return shr1(int32(shr2(int64(0x14ff6e2207db5d1f), int(a))), 4)
    }
    
    func shr1(n int32, m int) int32 { return n >> uint(m) }
    
    func shr2(n int64, m int) int64 {
    	if m < 0 {
    		m = -m
    	}
    	if m >= 64 {
    		return n
    	}
    
    	return n >> uint(m)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 00:03:36 UTC 2018
    - 585 bytes
    - Viewed (0)
  2. src/cmd/internal/notsha256/sha256block_386.s

    //   SIGMA0(x) = ROTR(7,x) XOR ROTR(18,x) XOR SHR(3,x)
    //   SIGMA1(x) = ROTR(17,x) XOR ROTR(19,x) XOR SHR(10,x)
    #define MSGSCHEDULE1(index) \
    	MOVL	((index-2)*4)(BP), AX; \
    	MOVL	AX, CX; \
    	RORL	$17, AX; \
    	MOVL	CX, DX; \
    	RORL	$19, CX; \
    	SHRL	$10, DX; \
    	MOVL	((index-15)*4)(BP), BX; \
    	XORL	CX, AX; \
    	MOVL	BX, CX; \
    	XORL	DX, AX; \
    	RORL	$7, BX; \
    	MOVL	CX, DX; \
    	SHRL	$3, DX; \
    	RORL	$18, CX; \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/rewriteAMD64latelower.go

    		}
    		v.reset(OpAMD64SHLXQ)
    		v.AddArg2(x, y)
    		return true
    	}
    	return false
    }
    func rewriteValueAMD64latelower_OpAMD64SHRL(v *Value) bool {
    	v_1 := v.Args[1]
    	v_0 := v.Args[0]
    	// match: (SHRL x y)
    	// cond: buildcfg.GOAMD64 >= 3
    	// result: (SHRXL x y)
    	for {
    		x := v_0
    		y := v_1
    		if !(buildcfg.GOAMD64 >= 3) {
    			break
    		}
    		v.reset(OpAMD64SHRXL)
    		v.AddArg2(x, y)
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. docs/ftp/README.md

    ssh-ed25519
    ******@****.***
    sk-ecdsa-sha2******@****.***
    ecdsa-sha2-nistp256
    ecdsa-sha2-nistp384
    ecdsa-sha2-nistp521
    rsa-sha2-256
    rsa-sha2-512
    ssh-rsa
    ssh-dss
    ```
    
    `--sftp=kex-algos=...` specifies the supported key-exchange algorithms in preference order.
    
    Valid values: 
    
    ```
    curve25519-sha256
    ******@****.***
    ecdh-sha2-nistp256
    ecdh-sha2-nistp384
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 06:41:25 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. src/crypto/internal/edwards25519/field/fe_amd64.s

    	ADDQ   R10, R13
    	ANDQ   AX, R15
    	ADDQ   R12, R15
    
    	// Second reduction chain (carryPropagate)
    	MOVQ   DI, SI
    	SHRQ   $0x33, SI
    	MOVQ   R9, R8
    	SHRQ   $0x33, R8
    	MOVQ   R11, R10
    	SHRQ   $0x33, R10
    	MOVQ   R13, R12
    	SHRQ   $0x33, R12
    	MOVQ   R15, R14
    	SHRQ   $0x33, R14
    	ANDQ   AX, DI
    	IMUL3Q $0x13, R14, R14
    	ADDQ   R14, DI
    	ANDQ   AX, R9
    	ADDQ   SI, R9
    	ANDQ   AX, R11
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/AMD64latelower.rules

    (MOVLQZX x) && zeroUpper32Bits(x,3)...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 636 bytes
    - Viewed (0)
  7. src/sort/search_test.go

    	}{
    		{[]string{}, "foo", 0, false},
    		{[]string{}, "", 0, false},
    
    		{str1, "foo", 0, true},
    		{str1, "bar", 0, false},
    		{str1, "zx", 1, false},
    
    		{str2, "aa", 0, false},
    		{str2, "ab", 0, true},
    		{str2, "ad", 1, false},
    		{str2, "ca", 1, true},
    		{str2, "ra", 2, false},
    
    		{str3, "bb", 0, false},
    		{str3, "mo", 0, true},
    		{str3, "nb", 1, false},
    		{str3, "qo", 1, true},
    		{str3, "tr", 2, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 14:42:13 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  8. src/crypto/internal/edwards25519/field/_asm/fe_amd64_asm.go

    	Comment("Second reduction chain (carryPropagate)")
    	// c0 = r0 >> 51
    	MOVQ(r0lo, c0)
    	SHRQ(Imm(51), c0)
    	// c1 = r1 >> 51
    	MOVQ(r1lo, c1)
    	SHRQ(Imm(51), c1)
    	// c2 = r2 >> 51
    	MOVQ(r2lo, c2)
    	SHRQ(Imm(51), c2)
    	// c3 = r3 >> 51
    	MOVQ(r3lo, c3)
    	SHRQ(Imm(51), c3)
    	// c4 = r4 >> 51
    	MOVQ(r4lo, c4)
    	SHRQ(Imm(51), c4)
    	maskAndAdd(r0lo, maskLow51Bits, c4, 19)
    	maskAndAdd(r1lo, maskLow51Bits, c0, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. src/internal/bytealg/compare_386.s

    	BSRL	CX, CX	// index of highest bit difference
    	SHRL	CX, BX	// move a's bit to bottom
    	ANDL	$1, BX	// mask bit
    	LEAL	-1(BX*2), BX // 1/0 => +1/-1
    	MOVL	BX, (AX)
    	RET
    
    	// 0-3 bytes in common
    small:
    	LEAL	(BP*8), CX
    	NEGL	CX
    	JEQ	allsame
    
    	// load si
    	CMPB	SI, $0xfc
    	JA	si_high
    	MOVL	(SI), SI
    	JMP	si_finish
    si_high:
    	MOVL	-4(SI)(BP*1), SI
    	SHRL	CX, SI
    si_finish:
    	SHLL	CX, SI
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 23 21:22:58 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/reflectdata/alg_test.go

    	type T2 struct {
    		a string
    		b int
    	}
    	const size = 1024
    	var (
    		str1 = "foobar"
    		str2 = "foobarz"
    
    		a [size]T2
    		c [size]T2
    	)
    
    	for i := 0; i < size; i++ {
    		a[i].a = str1
    		c[i].a = str1
    	}
    	c[len(c)-1].a = str2
    
    	b.ResetTimer()
    	for j := 0; j < b.N; j++ {
    		_ = a == c
    	}
    }
    
    const size = 16
    
    type T1 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 2.1K bytes
    - Viewed (0)
Back to top