|
Blender V5.3
|
#include <cstddef>#include <cstdint>Go to the source code of this file.
Functions | |
| bool | MEM_size_safe_multiply (size_t a, size_t b, size_t *result) |
| bool | MEM_size_safe_multiply (int64_t a, int64_t b, int64_t *result) |
Same as above for signed 64-bit integers.
Definition at line 37 of file MEM_safe_multiply.h.
References b, INT64_MAX, MEM_size_safe_multiply(), and SIZE_MAX.
|
inlinenodiscard |
Safe multiplication guarding against overflow, fast in the average case.
Definition at line 11 of file MEM_safe_multiply.h.
References b, MEM_size_safe_multiply(), and SIZE_MAX.
Referenced by blender::BKE_lightprobe_grid_cache_frame_sample_count(), blender::blo_read_array_impl(), MEM_guarded_calloc_arrayN(), MEM_guarded_malloc_arrayN(), mem_guarded_malloc_arrayN_aligned(), MEM_lockfree_calloc_arrayN(), MEM_lockfree_malloc_arrayN(), mem_lockfree_malloc_arrayN_aligned(), MEM_size_safe_multiply(), and MEM_size_safe_multiply().