---
name: "PR_GET_FP_MODE"
section: "2const"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/PR_GET_FP_MODE"
---

# PR\_GET\_FP\_MODE(2const)

get the floating point mode of the calling process

## NAME

PR\_GET\_FP\_MODE - get the floating point mode of the calling process

## LIBRARY

Standard C library (*libc*, *-lc*)

## SYNOPSIS

```
#include <linux/prctl.h>  /* Definition of PR_* constants */
#include <sys/prctl.h>
```

**int prctl(PR\_GET\_FP\_MODE);**

## DESCRIPTION

Return a bit mask which represents the current floating-point mode (see [**PR\_SET\_FP\_MODE**(2const)](/PR_SET_FP_MODE/2const.md) for details).

## RETURN VALUE

On success, this call returns the nonnegative value described above. On error, -1 is returned, and *errno* is set to indicate the error.

## STANDARDS

Linux. MIPS only.

## HISTORY

Linux 4.0 (MIPS).

## SEE ALSO

[**prctl**(2)](/prctl/2.md), [**PR\_GET\_FP\_MODE**(2const)](/PR_GET_FP_MODE/2const.md)
