- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for SETEQ (0.04 sec)
-
test/typeparam/issue51303.out
xe [1] ye [2 3] x [[1]]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 28 19:38:22 UTC 2022 - 40 bytes - Viewed (0) -
test/typeparam/issue51303.go
fmt.Println("x", x) if x.Equal(xe, ye) { fmt.Println("appending") z = append(z, xe) continue outer } } } return z } func SetEq[S []E, E comparable](x, y S) bool { fmt.Println("SetEq", x, y) outer: for _, xe := range x { for _, ye := range y { if xe == ye { continue outer } } return false // xs wasn't found in y } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.1K bytes - Viewed (0) -
src/internal/bytealg/equal_386.s
ADDL $4, SI ADDL $4, DI SUBL $4, BX CMPL CX, DX JEQ bigloop MOVB $0, (AX) RET // remaining 0-4 bytes leftover: MOVL -4(SI)(BX*1), CX MOVL -4(DI)(BX*1), DX CMPL CX, DX SETEQ (AX) RET small: CMPL BX, $0 JEQ equal LEAL 0(BX*8), CX NEGL CX MOVL SI, DX CMPB DX, $0xfc JA si_high // load at SI won't cross a page boundary. MOVL (SI), SI
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 23 21:22:58 UTC 2021 - 2.1K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_amd64.s
MOVL new+12(FP), CX LOCK CMPXCHGL CX, 0(BX) SETEQ ret+16(FP) RET // bool ·Cas64(uint64 *val, uint64 old, uint64 new) // Atomically: // if(*val == old){ // *val = new; // return 1; // } else { // return 0; // } TEXT ·Cas64(SB), NOSPLIT, $0-25 MOVQ ptr+0(FP), BX MOVQ old+8(FP), AX MOVQ new+16(FP), CX LOCK CMPXCHGQ CX, 0(BX) SETEQ ret+24(FP) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 5.2K bytes - Viewed (0) -
src/internal/bytealg/equal_amd64.s
ADDQ $8, DI SUBQ $8, BX CMPQ CX, DX JEQ bigloop XORQ AX, AX // return 0 RET // remaining 0-8 bytes leftover: MOVQ -8(SI)(BX*1), CX MOVQ -8(DI)(BX*1), DX CMPQ CX, DX SETEQ AX RET small: CMPQ BX, $0 JEQ equal LEAQ 0(BX*8), CX NEGQ CX CMPB SI, $0xf8 JA si_high // load at SI won't cross a page boundary. MOVQ (SI), SI JMP si_finish
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 16:34:40 UTC 2023 - 2.8K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_386.s
MOVL new_hi+16(FP), CX LOCK CMPXCHG8B 0(BP) SETEQ ret+20(FP) RET // bool Casp1(void **p, void *old, void *new) // Atomically: // if(*p == old){ // *p = new; // return 1; // }else // return 0; TEXT ·Casp1(SB), NOSPLIT, $0-13 MOVL ptr+0(FP), BX MOVL old+4(FP), AX MOVL new+8(FP), CX LOCK CMPXCHGL CX, 0(BX) SETEQ ret+12(FP) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 6.5K bytes - Viewed (0) -
src/internal/bytealg/compare_386.s
MOVL BX, (AX) RET // all the bytes in common are the same, so we just need // to compare the lengths. allsame: XORL BX, BX XORL CX, CX TESTL DX, DX SETLT BX // 1 if alen > blen SETEQ CX // 1 if alen == blen LEAL -1(CX)(BX*2), BX // 1,0,-1 result MOVL BX, (AX)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 23 21:22:58 UTC 2021 - 2.6K bytes - Viewed (0) -
src/internal/bytealg/compare_amd64.s
SHRQ CX, SI // move a's bit to bottom ANDQ $1, SI // mask bit LEAQ -1(SI*2), AX // 1/0 => +1/-1 RET allsame: XORQ AX, AX XORQ CX, CX CMPQ BX, DX SETGT AX // 1 if alen > blen SETEQ CX // 1 if alen == blen LEAQ -1(CX)(AX*2), AX // 1,0,-1 result RET // this works for >= 64 bytes of data. #ifndef hasAVX2 big_loop: MOVOU (SI), X0 MOVOU (DI), X1 PCMPEQB X0, X1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 18 17:17:01 UTC 2022 - 4.3K bytes - Viewed (0)