Blender V5.3
constexpr.hh File Reference
#include <bit>
#include <cassert>
#include <cstdint>
#include <vector>

Go to the source code of this file.

Classes

struct  bsl::ConstexprValue

Namespaces

namespace  bsl

Macros

#define COMPOUND_ASSIGN(op, ...)
#define LOOP(A)

Functions

template<typename Func>
auto bsl::apply_integral (Func func, const auto &lhs, const auto &rhs)
ConstexprValue bsl::operator+ (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator- (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator* (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator/ (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator&& (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator|| (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator== (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator!= (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator< (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator<= (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator> (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator>= (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator% (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator& (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator| (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator^ (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator<< (const ConstexprValue &lhs, const ConstexprValue &rhs)
ConstexprValue bsl::operator>> (const ConstexprValue &lhs, const ConstexprValue &rhs)
bool bsl::contains_zero (const ConstexprValue &v)
bool bsl::anyLessThan (const ConstexprValue &lhs, int rhs)
bool bsl::anyGreaterThanEqual (const ConstexprValue &lhs, int rhs)

Macro Definition Documentation

◆ COMPOUND_ASSIGN

#define COMPOUND_ASSIGN ( op,
... )
Value:
ConstexprValue operator op(const ConstexprValue &rhs) \
{ \
*this = constexpr_op([](auto &&l, auto &&r) { return __VA_ARGS__; }, *this, rhs); \
return *this; \
}

Definition at line 232 of file constexpr.hh.

◆ LOOP

#define LOOP ( A)
Value:
for (int i = 0; i < dst_len; ++i) { \
A; \
}
#define A

Referenced by bsl::ConstexprValue::constexpr_op().