Lines Matching refs:c2_cntr_t

190 class C2_HIDE c2_cntr_t;  variable
207 inline static constexpr T get(const c2_cntr_t<U, void> &value) { in get()
236 class C2_HIDE c2_cntr_t {
249 inline constexpr c2_cntr_t() : mValue(T(0)) {} in c2_cntr_t() function
255 inline constexpr c2_cntr_t(const U &value) : mValue(compat::get(value)) {} in c2_cntr_t() function
292 inline operator c2_cntr_t<U>() {
293 return c2_cntr_t<U>(mValue);
302 attrib inline c2_cntr_t<T>& operator op_assign(const U &value) { \
308 attrib inline constexpr c2_cntr_t<T> operator op(const U &value) const { \
309 return c2_cntr_t<T>(mValue op compat::get(value)); \
313 attrib inline constexpr c2_cntr_t<U> operator op(const c2_cntr_t<U> &value) const { \
314 return c2_cntr_t<U>(U(mValue) op value.peeku()); \
318 attrib inline constexpr c2_cntr_t<T> operator op() const { \
319 return c2_cntr_t<T>(op mValue); \
323 attrib inline c2_cntr_t<T> &operator op() { \
327 attrib inline c2_cntr_t<T> operator op(int) { \
328 return c2_cntr_t<T, void>(mValue op); \
343 inline constexpr c2_cntr_t<T> operator<<(const U &value) const {
344 return c2_cntr_t<T>(mValue << value);
349 inline c2_cntr_t<T> &operator<<=(const U &value) {
358 inline constexpr bool operator<=(const c2_cntr_t<T> &other) const {
363 inline constexpr bool operator>=(const c2_cntr_t<T> &other) const {
367 inline constexpr bool operator==(const c2_cntr_t<T> &other) const {
371 inline constexpr bool operator!=(const c2_cntr_t<T> &other) const {
375 inline constexpr bool operator<(const c2_cntr_t<T> &other) const {
379 inline constexpr bool operator>(const c2_cntr_t<T> &other) const {
385 inline constexpr c2_cntr_t<T> operator+(const U &a, const c2_cntr_t<T> &b) {
390 inline constexpr c2_cntr_t<T> operator-(const U &a, const c2_cntr_t<T> &b) {
391 return c2_cntr_t<T>(a) - b;
395 inline constexpr c2_cntr_t<T> operator*(const U &a, const c2_cntr_t<T> &b) {
399 typedef c2_cntr_t<uint32_t> c2_cntr32_t; /** 32-bit counter type */
400 typedef c2_cntr_t<uint64_t> c2_cntr64_t; /** 64-bit counter type */
528 struct std::less<::c2_cntr_t<T>> {
529 constexpr bool operator()(const ::c2_cntr_t<T> &lh, const ::c2_cntr_t<T> &rh) const {
534 struct std::less_equal<::c2_cntr_t<T>> {
535 constexpr bool operator()(const ::c2_cntr_t<T> &lh, const ::c2_cntr_t<T> &rh) const {
540 struct std::greater<::c2_cntr_t<T>> {
541 constexpr bool operator()(const ::c2_cntr_t<T> &lh, const ::c2_cntr_t<T> &rh) const {
546 struct std::greater_equal<::c2_cntr_t<T>> {
547 constexpr bool operator()(const ::c2_cntr_t<T> &lh, const ::c2_cntr_t<T> &rh) const {