#include <rtl_sched.h> int pthread_attr_setfp_np(pthread_attr_t *attr, int use_fp); int pthread_attr_getfp_np(pthread_attr_t *attr, int *use_fp); |
These functions are non-portable RTLinux extensions.
pthread_attr_setfp_np modifies the thread attribute object attribute to allow or disallow use of the floating point unit (FPU) in the created thread. use_fp is zero to disallow floating-point operations, or non-zero to allow them. The thread attribute object attr first has to be initialized with pthread_attr_init(3).
pthread_attr_getfp_np fills the location pointed to by cpu with the use_fp flag from the attribute structure.
©2001 FSMLabs Inc.
All rights reserved.