mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-10 13:10:51 +00:00
Remove use of <fpu_control.h> in minisat
This commit is contained in:
parent
106e44f406
commit
71cbe98a09
4 changed files with 44 additions and 18 deletions
|
@ -97,17 +97,6 @@ double Minisat::memUsedPeak(bool) { return 0; }
|
|||
#endif
|
||||
|
||||
|
||||
void Minisat::setX86FPUPrecision()
|
||||
{
|
||||
#if defined(__linux__) && defined(_FPU_EXTENDED) && defined(_FPU_DOUBLE) && defined(_FPU_GETCW)
|
||||
// Only correct FPU precision on Linux architectures that needs and supports it:
|
||||
fpu_control_t oldcw, newcw;
|
||||
_FPU_GETCW(oldcw); newcw = (oldcw & ~_FPU_EXTENDED) | _FPU_DOUBLE; _FPU_SETCW(newcw);
|
||||
printf("WARNING: for repeatability, setting FPU to use double precision\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
#if !defined(_MSC_VER) && !defined(__MINGW32__)
|
||||
void Minisat::limitMemory(uint64_t max_mem_mb)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue