Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 496 for shr1 (0.05 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/compile/internal/ssa/_gen/AMD64.rules

    ((SHLL|SHRL|SARL) x (NEGQ <t> (ADDQconst [c] y))) && c & 31 == 0  => ((SHLL|SHRL|SARL) x (NEGQ <t> y))
    ((SHLL|SHRL|SARL) x (ANDQconst [c] y)) && c & 31 == 31 => ((SHLL|SHRL|SARL) x y)
    ((SHLL|SHRL|SARL) x (NEGQ <t> (ANDQconst [c] y))) && c & 31 == 31 => ((SHLL|SHRL|SARL) x (NEGQ <t> y))
    
    ((SHLQ|SHRQ|SARQ) x (ADDLconst [c] y)) && c & 63 == 0  => ((SHLQ|SHRQ|SARQ) x y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  3. src/crypto/sha1/sha1.go

    // license that can be found in the LICENSE file.
    
    // Package sha1 implements the SHA-1 hash algorithm as defined in RFC 3174.
    //
    // SHA-1 is cryptographically broken and should not be used for secure
    // applications.
    package sha1
    
    import (
    	"crypto"
    	"crypto/internal/boring"
    	"errors"
    	"hash"
    	"internal/byteorder"
    )
    
    func init() {
    	crypto.RegisterHash(crypto.SHA1, New)
    }
    
    // The size of a SHA-1 checksum in bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. maven-model-builder/src/test/resources/poms/validation/raw-model/ok-ci-friendly-sha1.xml

      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.example.group</groupId>
      <artifactId>valid-version-sha1</artifactId>
      <version>${sha1}</version>
    
      <description>
        This will test if the validation for the ci friendly versions
        is working correct.
      </description>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Dec 24 18:50:27 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  5. 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)
  6. test/codegen/arithmetic.go

    // optimized into shifts and ands
    
    func LenDiv1(a []int) int {
    	// 386:"SHRL\t[$]10"
    	// amd64:"SHRQ\t[$]10"
    	// arm64:"LSR\t[$]10",-"SDIV"
    	// arm:"SRL\t[$]10",-".*udiv"
    	// ppc64x:"SRD"\t[$]10"
    	return len(a) / 1024
    }
    
    func LenDiv2(s string) int {
    	// 386:"SHRL\t[$]11"
    	// amd64:"SHRQ\t[$]11"
    	// arm64:"LSR\t[$]11",-"SDIV"
    	// arm:"SRL\t[$]11",-".*udiv"
    	// ppc64x:"SRD\t[$]11"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:28:00 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/x86/anames.go

    	"SHA1MSG1",
    	"SHA1MSG2",
    	"SHA1NEXTE",
    	"SHA1RNDS4",
    	"SHA256MSG1",
    	"SHA256MSG2",
    	"SHA256RNDS2",
    	"SHLB",
    	"SHLL",
    	"SHLQ",
    	"SHLW",
    	"SHLXL",
    	"SHLXQ",
    	"SHRB",
    	"SHRL",
    	"SHRQ",
    	"SHRW",
    	"SHRXL",
    	"SHRXQ",
    	"SHUFPD",
    	"SHUFPS",
    	"SIDT",
    	"SLDTL",
    	"SLDTQ",
    	"SLDTW",
    	"SMSWL",
    	"SMSWQ",
    	"SMSWW",
    	"SQRTPD",
    	"SQRTPS",
    	"SQRTSD",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 18:32:50 UTC 2023
    - 19.1K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/asm/internal/asm/testdata/amd64enc.s

    	SHRL CL, (BX)                           // d32b
    	SHRL CL, (R11)                          // 41d32b
    	SHRL CL, DX                             // d3ea
    	SHRL CL, R11                            // 41d3eb
    	SHRL $7, (BX)                           // c12b07
    	SHRL $7, (R11)                          // 41c12b07
    	SHRL $7, DX                             // c1ea07
    	SHRL $7, R11                            // 41c1eb07
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 21:38:44 UTC 2021
    - 581.9K bytes
    - Viewed (0)
  10. 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)
Back to top