master
 1/**
 2 * This file has no copyright assigned and is placed in the Public Domain.
 3 * This file is part of the mingw-w64 runtime package.
 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 5 */
 6#include <internal.h>
 7
 8/* 7.6.3.1
 9   The fegetround function returns the value of the rounding direction
10   macro representing the current rounding direction.  */
11
12int fegetround(void)
13{
14    return __mingw_controlfp(0, 0) & _MCW_RC;
15}