Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

<span class='option'> _readgsbase_u32()</span>, <span class='option'>_readgsbase_u64()</span>

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.