reactos/sdk/lib/ucrt/convert/fp_flags.cpp
2025-01-16 14:18:53 +02:00

20 lines
454 B
C++

//
// fp_flags.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Public data used by the floating point library
//
extern "C" { int __fastflag{0}; }
// Routine to set the fast flag in order to speed up computation
// of transcendentals at the expense of limiting error checking
extern "C" int __cdecl __setfflag(int const new_flag)
{
int const old_flag = __fastflag;
__fastflag = new_flag;
return old_flag;
}