mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-09 20:50:51 +00:00
Some fixes in libs/minisat (thanks to Siesh1oo)
This commit is contained in:
parent
8127d5e8c3
commit
a4d72de91d
3 changed files with 10 additions and 9 deletions
|
@ -79,7 +79,7 @@ double Minisat::memUsed() {
|
|||
struct rusage ru;
|
||||
getrusage(RUSAGE_SELF, &ru);
|
||||
return (double)ru.ru_maxrss / 1024; }
|
||||
double Minisat::memUsedPeak() { return memUsed(); }
|
||||
double Minisat::memUsedPeak(bool) { return memUsed(); }
|
||||
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
|
@ -89,11 +89,11 @@ double Minisat::memUsed() {
|
|||
malloc_statistics_t t;
|
||||
malloc_zone_statistics(NULL, &t);
|
||||
return (double)t.max_size_in_use / (1024*1024); }
|
||||
double Minisat::memUsedPeak() { return memUsed(); }
|
||||
double Minisat::memUsedPeak(bool) { return memUsed(); }
|
||||
|
||||
#else
|
||||
double Minisat::memUsed() { return 0; }
|
||||
double Minisat::memUsedPeak() { return 0; }
|
||||
double Minisat::memUsedPeak(bool) { return 0; }
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue