mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Refactor: Cycles: Simplify util_guarded_mem_alloc/free calls
Pull Request: https://projects.blender.org/blender/blender/pulls/132912
This commit is contained in:
parent
1fc73188e3
commit
0e8a7c751a
6 changed files with 25 additions and 27 deletions
|
|
@ -14,7 +14,7 @@ TEST(util_aligned_malloc, aligned_malloc_16)
|
|||
{
|
||||
int *mem = (int *)util_aligned_malloc(sizeof(int), 16);
|
||||
CHECK_ALIGNMENT(mem, 16);
|
||||
util_aligned_free(mem);
|
||||
util_aligned_free(mem, sizeof(int));
|
||||
}
|
||||
|
||||
/* On Apple we currently only support 16 bytes alignment. */
|
||||
|
|
@ -23,7 +23,7 @@ TEST(util_aligned_malloc, aligned_malloc_32)
|
|||
{
|
||||
int *mem = (int *)util_aligned_malloc(sizeof(int), 32);
|
||||
CHECK_ALIGNMENT(mem, 32);
|
||||
util_aligned_free(mem);
|
||||
util_aligned_free(mem, sizeof(int));
|
||||
}
|
||||
#endif /* __APPLE__ */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue