forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit56f2c7b
committed
Support SSE2 intrinsics where available
SSE2 vector instructions are part of the spec for the 64-bit x86architecture. Until now we have relied on the compiler to autovectorizein some limited situations, but some useful coding idioms can only beexpressed explicitly via compiler intrinsics. To this end, add a headerthat defines USE_SSE2 where available. While x86-only for now, we canadd other architectures in the future. This will also be the intendedplace for helper functions that use vector operations.Reviewed by Nathan Bossart and Masahiko SawadaDiscussion:https://www.postgresql.org/message-id/CAFBsxsE2G_H_5Wbw%2BNOPm70-BK4xxKf86-mRzY%3DL2sLoQqM%2B-Q%40mail.gmail.com1 parent1aa8dad commit56f2c7b
1 file changed
+30
-0
lines changedLines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + |
0 commit comments
Comments
(0)