| 6 | #include "lib/matrixManager.h" |
| 7 | |
| 8 | P64::PTX::System::System(Type ptxType, uint32_t maxSize) |
| 9 | : countMax{maxSize}, count{0}, type{ptxType} |
| 10 | { |
| 11 | assert(sizeof(countMax) % 2 == 0); |
| 12 | if(countMax > 0) { |
| 13 | std::size_t allocSize = countMax * sizeof(TPXParticle) / 2; |
| 14 | particles = malloc_uncached(allocSize); |
| 15 | sys_hw_memset(particles, 0, allocSize); |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | P64::PTX::System::~System() { |
| 20 | if(particles) { |
nothing calls this directly
no outgoing calls
no test coverage detected