9842 man page typos and spelling
1 GETISAX(2) System Calls GETISAX(2) 2 3 4 5 NAME 6 getisax - extract valid instruction set extensions 7 8 SYNOPSIS 9 #include <sys/auxv.h> 10 11 uint_t getisax(uint32_t *array, uint_t n); 12 13 14 DESCRIPTION 15 The getisax() function sets the vector array of n 32-bit integers to 16 contain the bits from the AV_xxx_yyy namespace of the given instruction 17 set architecture. 18 19 20 Values for AV_xxx_yyy for SPARC and SPARCV9, and their associated 21 descriptions, can be found in <sys/auxv_SPARC.h>. 22 23 24 Values for AV_xxx_yyy for i386 and AMD64, and their associated 25 descriptions, can be found in <sys/auxv_386.h>. 26 27 RETURN VALUES 28 The getisax() function returns the number of array elements that 29 contain non-zero values. 30 31 EXAMPLES 32 Example 1 Use getisax() to determine if the SSE2 instruction set is 33 present. 34 35 36 In the following example, if the message is written, the SSE2 37 instruction set is present and fully supportred by the operating 38 system. 39 40 41 uint_t ui; 42 43 (void) getisax(&ui, 1); 44 45 if (ui & AV_386_SSE2) 46 printf("SSE2 instruction set extension is present.\n"); 47 48 49 ATTRIBUTES 50 See attributes(5) for descriptions of the following attributes: 51 52 53 54 55 +--------------------+-----------------+ 56 | ATTRIBUTE TYPE | ATTRIBUTE VALUE | 57 +--------------------+-----------------+ 58 |Interface Stability | Committed | 59 +--------------------+-----------------+ 60 |MT-Level | Safe | 61 +--------------------+-----------------+ 62 63 SEE ALSO 64 isainfo(1), ld(1), pargs(1), attributes(5) 65 66 67 Linker and Libraries Guide 68 69 70 SPARC Assembly Language Reference Manual 71 72 73 x86 Assembly Language Reference Manual 74 75 76 77 November 7, 2007 GETISAX(2) --- EOF ---