Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PSHUFL (0.17 sec)

  1. src/internal/bytealg/indexbyte_amd64.s

    //   R8: address to put result
    TEXT	indexbytebody<>(SB), NOSPLIT, $0
    	// Shuffle X0 around so that each byte contains
    	// the character we're looking for.
    	MOVD AX, X0
    	PUNPCKLBW X0, X0
    	PUNPCKLBW X0, X0
    	PSHUFL $0, X0, X0
    
    	CMPQ BX, $16
    	JLT small
    
    	MOVQ SI, DI
    
    	CMPQ BX, $32
    	JA avx2
    sse:
    	LEAQ	-16(SI)(BX*1), AX	// AX = address of last 16 bytes
    	JMP	sseloopentry
    
    	PCALIGN $16
    sseloop:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 19:06:01 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. src/internal/bytealg/count_amd64.s

    // This function requires the POPCNT instruction.
    TEXT countbody<>(SB),NOSPLIT,$0
    	// Shuffle X0 around so that each byte contains
    	// the character we're looking for.
    	MOVD AX, X0
    	PUNPCKLBW X0, X0
    	PUNPCKLBW X0, X0
    	PSHUFL $0, X0, X0
    
    	CMPQ BX, $16
    	JLT small
    
    	MOVQ $0, R12 // Accumulator
    
    	MOVQ SI, DI
    
    	CMPQ BX, $64
    	JAE avx2
    sse:
    	LEAQ	-16(SI)(BX*1), AX	// AX = address of last 16 bytes
    	JMP	sseloopentry
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:54:43 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top