Blender V4.3
guardedalloc_alignment_test.cc File Reference
#include "testing/testing.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
#include "guardedalloc_test_base.h"

Go to the source code of this file.

Macros

#define CHECK_ALIGNMENT(ptr, align)   EXPECT_EQ(size_t(ptr) % align, 0)
 

Functions

 TEST_F (LockFreeAllocatorTest, MEM_mallocN_aligned)
 
 TEST_F (GuardedAllocatorTest, MEM_mallocN_aligned)
 

Macro Definition Documentation

◆ CHECK_ALIGNMENT

#define CHECK_ALIGNMENT ( ptr,
align )   EXPECT_EQ(size_t(ptr) % align, 0)

Definition at line 12 of file guardedalloc_alignment_test.cc.

Function Documentation

◆ TEST_F() [1/2]

Definition at line 50 of file guardedalloc_alignment_test.cc.

◆ TEST_F() [2/2]

Definition at line 38 of file guardedalloc_alignment_test.cc.