using_20sse2_20instructions
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| using_20sse2_20instructions [2018/03/31 13:19] – external edit 127.0.0.1 | using_20sse2_20instructions [2024/01/05 00:21] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| =====Using SSE2 instructions===== | =====Using SSE2 instructions===== | ||
| - | //by Richard Russell, updated May 2015//\\ \\ [[http:// | + | //by Richard Russell, updated May 2015//\\ \\ [[http:// |
| + | |||
| + | <code bb4w> | ||
| CALL " | CALL " | ||
| + | </ | ||
| + | |||
| (the file should have a **RETURN** as the last statement).\\ \\ Whilst this solution is relatively straightforward it is arguably inconvenient, | (the file should have a **RETURN** as the last statement).\\ \\ Whilst this solution is relatively straightforward it is arguably inconvenient, | ||
| punpcklbw xmm0,xmm1 | punpcklbw xmm0,xmm1 | ||
| can be assembled as follows: | can be assembled as follows: | ||
| punpcklbw word mm0,mm1 ; punpcklbw xmm0,xmm1 | punpcklbw word mm0,mm1 ; punpcklbw xmm0,xmm1 | ||
| - | \\ | + | |
| + | The full set of **SSE2** instructions which can be assembled in this way is as follows: | ||
| + | |||
| punpcklbw word mm0,mm1 ; punpcklbw xmm0,xmm1 | punpcklbw word mm0,mm1 ; punpcklbw xmm0,xmm1 | ||
| punpcklwd word mm0,mm1 ; punpcklwd xmm0,xmm1 | punpcklwd word mm0,mm1 ; punpcklwd xmm0,xmm1 | ||
using_20sse2_20instructions.1522502390.txt.gz · Last modified: 2024/01/05 00:16 (external edit)