Minres / SystemC-Components

A SystemC productivity library: https://minres.github.io/SystemC-Components/
https://www.minres.com/#opensource
Apache License 2.0
86 stars 24 forks source link

Correct size #28

Closed mslijepc closed 2 years ago

mslijepc commented 2 years ago

is +1 correct?

https://github.com/Minres/SystemC-Components/blob/7bbef20f1d1dcb2404e4d9ad48029bd04cfc5c20/src/common/util/sparse_array.h#L42

eyck commented 2 years ago

Not always. if SIZE is smaller than page_size or not a multiple of page_size it is correct. If it s a multiple of page_size it is 1 to large