Changeset View
Changeset View
Standalone View
Standalone View
share/man/man7/simd.7
| Show All 18 Lines | |||||
| .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||||
| .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||||
| .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
| .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
| .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
| .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
| .\" SUCH DAMAGE | .\" SUCH DAMAGE | ||||
| . | . | ||||
| .Dd August 31, 2023 | .Dd September 2, 2023 | ||||
| .Dt SIMD 7 | .Dt SIMD 7 | ||||
| .Os | .Os | ||||
| .Sh NAME | .Sh NAME | ||||
| .Nm simd | .Nm simd | ||||
| .Nd SIMD enhancements | .Nd SIMD enhancements | ||||
| . | . | ||||
| .Sh DESCRIPTION | .Sh DESCRIPTION | ||||
| On some architectures, the | On some architectures, the | ||||
| .Fx | .Fx | ||||
| .Em libc | .Em libc | ||||
| provides enhanced implementations of commonly used functions, replacing | provides enhanced implementations of commonly used functions, replacing | ||||
| the architecture-independent implementations used otherwise. | the architecture-independent implementations used otherwise. | ||||
| Depending on architecture and function, an enhanced | Depending on architecture and function, an enhanced | ||||
| implementation of a function may either always be used or the | implementation of a function may either always be used or the | ||||
| .Em libc | .Em libc | ||||
| detects at runtime which SIMD instruction set extensions are | detects at runtime which SIMD instruction set extensions are | ||||
| supported and picks the most suitable implementation automatically. | supported and picks the most suitable implementation automatically. | ||||
| On | On | ||||
| .Cm amd64 , | .Cm amd64 , | ||||
| the environment variable | the environment variable | ||||
| .Ev ARCHLEVEL | .Ev ARCHLEVEL | ||||
| can be used to override this mechanism. | can be used to override this mechanism. | ||||
| .Pp | .Pp | ||||
| Enhanced functions are present in the following architectures: | Enhanced functions are present in the following architectures: | ||||
| .Bl -column FUNCTION________ aarch64_ arm_ amd64_ i386_ ppc64_ -offset indent | .Bl -column FUNCTION_________ aarch64_ arm_ amd64_ i386_ ppc64_ -offset indent | ||||
| .It Em FUNCTION Ta Em AARCH64 Ta Em ARM Ta Em AMD64 Ta Em I386 Ta Em PPC64 | .It Em FUNCTION Ta Em AARCH64 Ta Em ARM Ta Em AMD64 Ta Em I386 Ta Em PPC64 | ||||
| .It bcmp Ta Ta Ta S1 Ta S | .It bcmp Ta Ta Ta S1 Ta S | ||||
| .It bcopy Ta Ta S Ta S Ta S Ta SV | .It bcopy Ta Ta S Ta S Ta S Ta SV | ||||
| .It bzero Ta Ta S Ta S Ta S | .It bzero Ta Ta S Ta S Ta S | ||||
| .It div Ta Ta Ta S Ta S | .It div Ta Ta Ta S Ta S | ||||
| .It index Ta S Ta Ta S1 | .It index Ta S Ta Ta S1 | ||||
| .It ldiv Ta Ta Ta S Ta S | .It ldiv Ta Ta Ta S Ta S | ||||
| .It lldiv Ta Ta Ta S | .It lldiv Ta Ta Ta S | ||||
| Show All 13 Lines | |||||
| .It strlen Ta Ta S Ta S1 | .It strlen Ta Ta S Ta S1 | ||||
| .It strncmp Ta Ta S Ta Ta S | .It strncmp Ta Ta S Ta Ta S | ||||
| .It strncpy Ta Ta Ta Ta Ta S2 | .It strncpy Ta Ta Ta Ta Ta S2 | ||||
| .It strnlen Ta Ta Ta S1 | .It strnlen Ta Ta Ta S1 | ||||
| .It strrchr Ta S Ta Ta Ta S | .It strrchr Ta S Ta Ta Ta S | ||||
| .It strspn Ta Ta Ta S2 | .It strspn Ta Ta Ta S2 | ||||
| .It swab Ta Ta Ta Ta S | .It swab Ta Ta Ta Ta S | ||||
| .It timingsafe_bcmp Ta Ta Ta S1 | .It timingsafe_bcmp Ta Ta Ta S1 | ||||
| .It timingsafe_memcmp Ta Ta Ta S | |||||
| .It wcschr Ta Ta Ta Ta S | .It wcschr Ta Ta Ta Ta S | ||||
| .It wcscmp Ta Ta Ta Ta S | .It wcscmp Ta Ta Ta Ta S | ||||
| .It wcslen Ta Ta Ta Ta S | .It wcslen Ta Ta Ta Ta S | ||||
| .It wmemchr Ta Ta Ta Ta S | .It wmemchr Ta Ta Ta Ta S | ||||
| .El | .El | ||||
| .Pp | .Pp | ||||
| .Sy S Ns :\ scalar (non-SIMD), | .Sy S Ns :\ scalar (non-SIMD), | ||||
| .Sy 1 Ns :\ amd64 baseline, | .Sy 1 Ns :\ amd64 baseline, | ||||
| ▲ Show 20 Lines • Show All 143 Lines • Show Last 20 Lines | |||||