Print this page
9842 man page typos and spelling
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man2/getisax.2
+++ new/usr/src/man/man2/getisax.2
1 1 '\" te
2 2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 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 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 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 6 .TH GETISAX 2 "Nov 7, 2007"
7 7 .SH NAME
↓ open down ↓ |
7 lines elided |
↑ open up ↑ |
8 8 getisax \- extract valid instruction set extensions
9 9 .SH SYNOPSIS
10 10 .LP
11 11 .nf
12 12 #include <sys/auxv.h>
13 13
14 14 \fBuint_t\fR \fBgetisax\fR(\fBuint32_t *\fR\fIarray\fR, \fBuint_t\fR \fIn\fR);
15 15 .fi
16 16
17 17 .SH DESCRIPTION
18 -.sp
19 18 .LP
20 19 The \fBgetisax()\fR function sets the vector \fIarray\fR of \fIn\fR 32-bit
21 20 integers to contain the bits from the \fBAV\fR_\fIxxx\fR_\fIyyy\fR namespace of
22 21 the given instruction set architecture.
23 22 .sp
24 23 .LP
25 24 Values for \fBAV\fR_\fIxxx\fR_\fIyyy\fR for SPARC and SPARCV9, and their
26 25 associated descriptions, can be found in \fB<sys/auxv_SPARC.h>\fR.
27 26 .sp
28 27 .LP
29 28 Values for \fBAV\fR_\fIxxx\fR_\fIyyy\fR for i386 and AMD64, and their
30 29 associated descriptions, can be found in \fB<sys/auxv_386.h>\fR.
31 30 .SH RETURN VALUES
32 -.sp
33 31 .LP
34 32 The \fBgetisax()\fR function returns the number of array elements that contain
35 33 non-zero values.
36 34 .SH EXAMPLES
37 35 .LP
38 36 \fBExample 1 \fRUse \fBgetisax()\fR to determine if the SSE2 instruction set is
39 37 present.
40 38 .sp
41 39 .LP
42 40 In the following example, if the message is written, the SSE2 instruction set
43 -is present and fully supportred by the operating system.
41 +is present and fully supported by the operating system.
44 42
45 43 .sp
46 44 .in +2
47 45 .nf
48 46 uint_t ui;
49 47
50 48 (void) getisax(&ui, 1);
51 49
52 50 if (ui & AV_386_SSE2)
53 51 printf("SSE2 instruction set extension is present.\en");
54 52 .fi
55 53 .in -2
56 54
57 55 .SH ATTRIBUTES
58 -.sp
59 56 .LP
60 57 See \fBattributes\fR(5) for descriptions of the following attributes:
61 58 .sp
62 59
63 60 .sp
64 61 .TS
65 62 box;
66 63 c | c
67 64 l | l .
68 65 ATTRIBUTE TYPE ATTRIBUTE VALUE
69 66 _
70 67 Interface Stability Committed
71 68 _
72 69 MT-Level Safe
73 70 .TE
74 71
75 72 .SH SEE ALSO
76 -.sp
77 73 .LP
78 74 \fBisainfo\fR(1), \fBld\fR(1), \fBpargs\fR(1), \fBattributes\fR(5)
79 75 .sp
80 76 .LP
81 77 \fILinker and Libraries Guide\fR
82 78 .sp
83 79 .LP
84 80 \fISPARC Assembly Language Reference Manual\fR
85 81 .sp
86 82 .LP
87 83 \fIx86 Assembly Language Reference Manual\fR
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX