---
name: "pthread_setfp_np"
section: "3"
platform: "linux"
package: "rtlinux"
version: "2.0rel-1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/pthread_setfp_np"
---

# pthread\_setfp\_np(3)

allow use of floating-point operations in a thread

## NAME

pthread\_setfp\_np -  allow use of floating-point operations in a thread

## SYNOPSIS

**#include \<rtl\_sched.h\>**

**int pthread\_setfp\_np (pthread\_t thread, int flag);**

## DESCRIPTION

This function is a non-portable Real-Time Linux extension. **pthread\_setfp\_np** allows or disallows the use of floating-point arithmetic operations in a real-time thread. *flag* is zero to disallow floating-point operations, or non-zero to allow them.

## RETURN VALUE

pthread\_setfp\_np returns 0 on success and a non-zero error code on error.

## ERRORS

**EINVAL** pthread\_setfp\_np was called on a thread running on a different CPU.

## SEE ALSO

[**pthread\_create**(3)](/pthread_create/3.md)
