Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

__getReg

Microsoft Specific

Gets the contents of a register specified with a constant that are the same values as declared in the header file intrin.h.

unsigned __int64 __getReg(
   int Register
);

[in] Register

A constant specifying the desired processor register.

The contents of the register indicated.

Intrinsic

Architecture

__getReg

IPF

Header file <intrin.h>

This routine is only available as an intrinsic. Not all registers are readable. If you call this with an invalid register, a compile time error results.

// getReg.cpp
// processor: IPF
#include <cstdio>
#include <stdio.h>
#include <intrin.h>
#define __REG_IA64_IntR1 1025

#pragma intrinsic(__getReg)

int main()
{
    unsigned __int64 reg;
   
    reg = __getReg(__REG_IA64_IntR1);
    printf_s("%I64d\n", reg);
   
    return 0;
}

Community Additions

ADD
Show:
© 2015 Microsoft