5#include "testing/testing.h"
85 std::array<int, 5> values = {1, 2, 3, 4, 5};
96 std::array<int, 7> values = {1, 2, 3, 4, 5, 6, 7};
126 void *buffer1 = allocator.
allocate(1024 * 1024, 8);
127 void *buffer2 = allocator.
allocate(1024 * 1024, 8);
135 for (
int i = 0; i < 1000; i++) {
138 void *buffer = allocator.
allocate(size, alignment);
151 for (std::string &
string : strings) {
152 string.~basic_string();
163 const int size = 1'000'000;
164 const int value = 42;
165 const int index = 500'000;
169 values[
index] = value;
#define POINTER_AS_UINT(i)
destruct_ptr< T > construct(Args &&...args)
void provide_buffer(void *buffer, const int64_t size)
MutableSpan< T > allocate_array(int64_t size)
StringRefNull copy_string(StringRef str)
void * allocate(const int64_t size, const int64_t alignment)
MutableSpan< T > construct_array(int64_t size, Args &&...args)
Span< T * > construct_elements_and_pointer_array(int64_t n, Args &&...args)
MutableSpan< T > construct_array_copy(Span< T > src)
void transfer_ownership_from(LinearAllocator<> &other)
constexpr int64_t size() const
constexpr T * data() const
constexpr int64_t size() const
Span< T > as_span() const
constexpr const char * data() const
#define EXPECT_NE(result, expect)
#define EXPECT_TRUE(result)
TEST(any_virtual, DefaultConstructor)
static bool is_aligned(void *ptr, uint alignment)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
constexpr int64_t is_power_of_2(const int64_t x)
_W64 unsigned int uintptr_t
EXPECT_EQ(BLI_expr_pylike_eval(expr, nullptr, 0, &result), EXPR_PYLIKE_INVALID)