Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public

Visible to Intel only — GUID: GUID-3E1D67FA-35BE-4EE0-A9C9-2529E0D5FA69

Document Table of Contents

_readgsbase_u32(), _readgsbase_u64()

Read the value of the GS base register. Both intrinsics are mapped to RDGSBASE instruction.

Syntax

extern unsigned int _readgsbase_u32();

extern unsigned int _readgsbase_u32();

Description

These intrinsics read the value of the GS base register.

Returns

The value of the GS base segment register.