123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef CNSTREAM_COMMON_HPP_
- #define CNSTREAM_COMMON_HPP_
- #include <atomic>
- #include <mutex>
- #include <sstream>
- #include <string>
- #include <vector>
- #include "private/cnstream_common_pri.hpp"
- namespace cnstream {
- uint32_t GetMaxModuleNumber();
- uint32_t GetMaxStreamNumber();
- }
- #ifndef ROUND_UP
- #define ROUND_UP(addr, boundary) (((uint64_t)(addr) + (boundary)-1) & ~((boundary)-1))
- #endif
- #ifndef ROUND_DOWN
- #define ROUND_DOWN(addr, boundary) ((uint64_t)(addr) & ~((boundary)-1))
- #endif
- #endif
|