Sha256: 9125eea1d73bf46bb9fe8cfdd9ef9cad445dc9f41018b40b93d4bf3f487e476a
Contents?: true
Size: 502 Bytes
Versions: 2
Compression:
Stored size: 502 Bytes
Contents
#ifndef RUBYEIGEN_GC_HPP #define RUBYEIGEN_GC_HPP #include "rubyeigen_gc.h" #include <climits> static size_t rubyeigen_gc_count = 0; size_t rubyeigen_gc_get_count() { return rubyeigen_gc_count; } void rubyeigen_gc_reset_count() { rubyeigen_gc_count = 0; } void rubyeigen_gc_add_count(size_t sz) { const size_t max_size = (size_t)-1; if(max_size - rubyeigen_gc_count > sz ) { rubyeigen_gc_count += sz; } else if( sz > rubyeigen_gc_count ) { rubyeigen_gc_count = sz; } } #endif
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-eigen-0.0.11 | ext/eigen/rubyeigen_gc.hpp |
ruby-eigen-0.0.11.pre2 | ext/eigen/rubyeigen_gc.hpp |