System Calls getisax(2)
NAME
getisax - extract valid instruction set extensions
SYNOPSIS
#include
uintt getisax(uint32t *array, uintt n);
DESCRIPTION
The getisax() function sets the vector array of n 32-bit
integers to contain the bits from the AVxxxyyy namespace
of the given instruction set architecture.
Values for AVxxxyyy for SPARC and SPARCV9, and their asso-
ciated descriptions, can be found in .
Values for AVxxxyyy for i386 and AMD64, and their associ-
ated descriptions, can be found in .
RETURN VALUES
The getisax() function returns the number of array elements
that contain non-zero values.
EXAMPLES
Example 1 Use getisax() to determine if the SE2 instruction
set is present.
In the following example, if the message is written, the
SE2 instruction set is present and fully supportred by the
operating system.
uintt ui;
(void) getisax(&ui, 1);
if (ui & AV386SE2)
printf("SE2 instruction set extension is present.\n");
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 7 bNov 2007 1
System Calls getisax(2)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level Safe
SEE ALSO
isainfo(1), ld(1), pargs(1), attributes(5)
Linker and Libraries Guide
SPARC Assembly Language Reference Manual
x86 Assembly Language Reference Manual
SunOS 5.11 Last change: 7 bNov 2007 2
|