Skip to content

File overflow_counter.hpp

FileList > include > libhal-util > overflow_counter.hpp

Go to the source code of this file

  • #include <cstdint>
  • #include "bit_limits.hpp"

Namespaces

Type Name
namespace hal
The foundation of libhal containing, interfaces, utilities and soft drivers.

Classes

Type Name
class overflow_counter <CountBitWidth>
Extend a counter's count from an arbitrary bit width to 64-bits by detecting overflows in the count. Each detected overflow is added to an overflow counter which is combined with the current count in order create a count up to 64-bits in length.

The documentation for this class was generated from the following file libraries/include/libhal-util/overflow_counter.hpp