- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 109 for shr2 (0.15 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
test/codegen/memcombine.go
// s390x:"STMG" p[0] = x // s390x:-"STMG",-"MOVD" p[1] = y } func store32le(p *struct{ a, b uint32 }, x uint64) { // amd64:"MOVQ",-"MOVL",-"SHRQ" // arm64:"MOVD",-"MOVW",-"LSR" // ppc64le:"MOVD",-"MOVW",-"SRD" p.a = uint32(x) // amd64:-"MOVL",-"SHRQ" // arm64:-"MOVW",-"LSR" // ppc64le:-"MOVW",-"SRD" p.b = uint32(x >> 32) } func store32be(p *struct{ a, b uint32 }, x uint64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 19:45:41 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/internal/notsha256/sha256block_amd64.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 - 14K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/386Ops.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 14 08:10:32 UTC 2023 - 45.1K bytes - Viewed (0)