libnxz / power-gzip

POWER NX zlib compliant library
23 stars 18 forks source link

Consolidate the Timebase register usage #83

Closed tuliom closed 3 years ago

tuliom commented 3 years ago

This commit is intentionally leaving the selftest directory unchanged.

tuliom commented 3 years ago

Rewrite nx_get_freq() in order to cache the frequency information because reads of the Timebase register frequency are not fast.

I should have mentioned this change saves around 3-5% of cpu cycles.