2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH GETISAX 2 "Nov 7, 2007"
8 getisax \- extract valid instruction set extensions
14 \fBuint_t\fR \fBgetisax\fR(\fBuint32_t *\fR\fIarray\fR, \fBuint_t\fR \fIn\fR);
20 The \fBgetisax()\fR function sets the vector \fIarray\fR of \fIn\fR 32-bit
21 integers to contain the bits from the \fBAV\fR_\fIxxx\fR_\fIyyy\fR namespace of
22 the given instruction set architecture.
25 Values for \fBAV\fR_\fIxxx\fR_\fIyyy\fR for SPARC and SPARCV9, and their
26 associated descriptions, can be found in \fB<sys/auxv_SPARC.h>\fR.
29 Values for \fBAV\fR_\fIxxx\fR_\fIyyy\fR for i386 and AMD64, and their
30 associated descriptions, can be found in \fB<sys/auxv_386.h>\fR.
34 The \fBgetisax()\fR function returns the number of array elements that contain
38 \fBExample 1 \fRUse \fBgetisax()\fR to determine if the SSE2 instruction set is
42 In the following example, if the message is written, the SSE2 instruction set
43 is present and fully supportred by the operating system.
50 (void) getisax(&ui, 1);
53 printf("SSE2 instruction set extension is present.\en");
60 See \fBattributes\fR(5) for descriptions of the following attributes:
68 ATTRIBUTE TYPE ATTRIBUTE VALUE
70 Interface Stability Committed
78 \fBisainfo\fR(1), \fBld\fR(1), \fBpargs\fR(1), \fBattributes\fR(5)
81 \fILinker and Libraries Guide\fR
84 \fISPARC Assembly Language Reference Manual\fR
87 \fIx86 Assembly Language Reference Manual\fR