|
Blender V5.3
|
Go to the source code of this file.
Macros | |
| #define | pf(_x, _i) |
| Prefetch 64. | |
| #define | pf2(_x, _i) |
| Prefetch 128. | |
| #define | GIM_COPY_ARRAYS(dest_array, source_array, element_count) |
| Functions for manip packed arrays of numbers. | |
| #define | GIM_COPY_ARRAYS_1(dest_array, source_array, element_count, copy_macro) |
| #define | GIM_ZERO_ARRAY(array, element_count) |
| #define | GIM_CONSTANT_ARRAY(array, element_count, constant) |
| #define | SIMD_T GUINT64 |
| SIMD POINTER INTEGER. | |
| #define | SIMD_T_SIZE sizeof(SIMD_T) |
| SIMD INTEGER SIZE. | |
Typedefs | |
| typedef void * | gim_alloc_function(size_t size) |
| Function prototypes to allocate and free memory. | |
| typedef void * | gim_alloca_function(size_t size) |
| typedef void * | gim_realloc_function(void *ptr, size_t oldsize, size_t newsize) |
| typedef void | gim_free_function(void *ptr) |
Functions | |
| void | gim_set_alloc_handler (gim_alloc_function *fn) |
| void | gim_set_alloca_handler (gim_alloca_function *fn) |
| void | gim_set_realloc_handler (gim_realloc_function *fn) |
| void | gim_set_free_handler (gim_free_function *fn) |
| gim_alloc_function * | gim_get_alloc_handler (void) |
| get current memory management functions. | |
| gim_alloca_function * | gim_get_alloca_handler (void) |
| gim_realloc_function * | gim_get_realloc_handler (void) |
| gim_free_function * | gim_get_free_handler (void) |
| void * | gim_alloc (size_t size) |
| Standar Memory functions. | |
| void * | gim_alloca (size_t size) |
| void * | gim_realloc (void *ptr, size_t oldsize, size_t newsize) |
| void | gim_free (void *ptr) |
| void | gim_simd_memcpy (void *dst, const void *src, size_t copysize) |
| template<class T> | |
| void | gim_swap_elements (T *_array, size_t _i, size_t _j) |
| template<class T> | |
| void | gim_swap_elements_memcpy (T *_array, size_t _i, size_t _j) |
| template<int SIZE> | |
| void | gim_swap_elements_ptr (char *_array, size_t _i, size_t _j) |
Definition in file gim_memory.h.
| #define GIM_CONSTANT_ARRAY | ( | array, | |
| element_count, | |||
| constant ) |
Definition at line 78 of file gim_memory.h.
| #define GIM_COPY_ARRAYS | ( | dest_array, | |
| source_array, | |||
| element_count ) |
Functions for manip packed arrays of numbers.
Definition at line 54 of file gim_memory.h.
| #define GIM_COPY_ARRAYS_1 | ( | dest_array, | |
| source_array, | |||
| element_count, | |||
| copy_macro ) |
Definition at line 62 of file gim_memory.h.
| #define GIM_ZERO_ARRAY | ( | array, | |
| element_count ) |
Definition at line 70 of file gim_memory.h.
| #define pf | ( | _x, | |
| _i ) |
Prefetch 64.
Definition at line 48 of file gim_memory.h.
Referenced by blender::BKE_image_signal(), blender::BKE_packedfile_blend_read(), blender::BKE_packedfile_blend_write(), blender::BKE_packedfile_compare_to_file(), blender::BKE_packedfile_free(), blender::BKE_packedfile_new(), blender::BKE_packedfile_new_from_memory(), blender::BKE_packedfile_read(), blender::BKE_packedfile_rewind(), blender::BKE_packedfile_seek(), blender::BKE_packedfile_unpack(), blender::BKE_packedfile_unpack_to_file(), blender::BKE_packedfile_write_to_file(), blender::BKE_ptcache_load_external(), blender::BKE_vfont_data_ensure(), blender::BKE_vfont_load(), blender::BKE_vfontdata_from_freetypefont(), blender::BLI_polyfill_calc(), blender::BLI_polyfill_calc_arena(), blender::BLI_scanfill_calc_ex(), blender::io::usd::export_packed_texture(), blender::image_memorypack_imbuf(), blender::image_memorypack_imbuf_for_autosave(), blender::pf_coord_remove(), blender::pf_coord_sign_calc(), blender::pf_ear_tip_check(), blender::pf_ear_tip_cut(), blender::pf_ear_tip_find(), blender::pf_tri_add(), blender::pf_triangulate(), phase_fournier_forand_impl(), phase_fournier_forand_newton(), blender::polyfill_calc(), blender::polyfill_prepare(), blender::ptcache_basic_header_read(), blender::ptcache_basic_header_write(), blender::ptcache_disk_frame_to_mem(), blender::ptcache_dynamicpaint_read(), blender::ptcache_dynamicpaint_write(), blender::ptcache_file_close(), blender::ptcache_file_compressed_read(), blender::ptcache_file_compressed_write(), blender::ptcache_file_header_begin_read(), blender::ptcache_file_header_begin_write(), blender::ptcache_file_open(), blender::ptcache_file_pointers_init(), blender::ptcache_file_points_read(), blender::ptcache_file_read(), blender::ptcache_file_write(), blender::ptcache_mem_frame_to_disk(), blender::ptcache_read_stream(), blender::ptcache_write_stream(), blender::read_library_file_data(), blender::scanfill(), Freestyle::WOEdge::setaFace(), Freestyle::WOEdge::setbFace(), blender::seq::text_font_load(), blender::unpack_generate_paths(), blender::unpack_menu(), and blender::vfont_init_data().
| #define pf2 | ( | _x, | |
| _i ) |
Prefetch 128.
Definition at line 50 of file gim_memory.h.
Referenced by blender::boundisect(), and blender::mergepolysSimp().
| #define SIMD_T GUINT64 |
SIMD POINTER INTEGER.
Definition at line 116 of file gim_memory.h.
SIMD INTEGER SIZE.
Definition at line 118 of file gim_memory.h.
| typedef void * gim_alloc_function(size_t size) |
Function prototypes to allocate and free memory.
Definition at line 87 of file gim_memory.h.
| typedef void * gim_alloca_function(size_t size) |
Definition at line 88 of file gim_memory.h.
| typedef void gim_free_function(void *ptr) |
Definition at line 90 of file gim_memory.h.
| typedef void * gim_realloc_function(void *ptr, size_t oldsize, size_t newsize) |
Definition at line 89 of file gim_memory.h.
| void * gim_alloc | ( | size_t | size | ) |
Standar Memory functions.
Definition at line 82 of file gim_memory.cpp.
References btAlignedAlloc, g_allocfn, gim_alloc(), and size().
Referenced by gim_hash_table< T >::_reserve_table_memory(), gim_alloc(), gim_alloca(), gim_radix_sort(), gim_radix_sort_array_tokens(), gim_realloc(), and gim_array< T >::resizeData().
| void * gim_alloca | ( | size_t | size | ) |
Definition at line 100 of file gim_memory.cpp.
References g_allocafn, gim_alloc(), gim_alloca(), and size().
Referenced by gim_alloca().
| void gim_free | ( | void * | ptr | ) |
Definition at line 117 of file gim_memory.cpp.
References btAlignedFree, g_freefn, and gim_free().
Referenced by gim_hash_table< T >::_clear_table_memory(), gim_array< T >::destroyData(), gim_free(), gim_radix_sort(), gim_radix_sort_array_tokens(), and gim_realloc().
| gim_alloc_function * gim_get_alloc_handler | ( | void | ) |
get current memory management functions.
Definition at line 62 of file gim_memory.cpp.
References g_allocfn, and gim_get_alloc_handler().
Referenced by gim_get_alloc_handler().
| gim_alloca_function * gim_get_alloca_handler | ( | void | ) |
Definition at line 67 of file gim_memory.cpp.
References g_allocafn, and gim_get_alloca_handler().
Referenced by gim_get_alloca_handler().
| gim_free_function * gim_get_free_handler | ( | void | ) |
Definition at line 77 of file gim_memory.cpp.
References g_freefn, and gim_get_free_handler().
Referenced by gim_get_free_handler().
| gim_realloc_function * gim_get_realloc_handler | ( | void | ) |
Definition at line 72 of file gim_memory.cpp.
References g_reallocfn, and gim_get_realloc_handler().
Referenced by gim_get_realloc_handler().
| void * gim_realloc | ( | void * | ptr, |
| size_t | oldsize, | ||
| size_t | newsize ) |
Definition at line 108 of file gim_memory.cpp.
References gim_alloc(), gim_free(), gim_realloc(), and gim_simd_memcpy().
Referenced by gim_realloc(), and gim_array< T >::resizeData().
| void gim_set_alloc_handler | ( | gim_alloc_function * | fn | ) |
Memory Function Handlers set new memory management functions. if fn is 0, the default handlers are used.
Definition at line 42 of file gim_memory.cpp.
References g_allocfn, and gim_set_alloc_handler().
Referenced by gim_set_alloc_handler().
| void gim_set_alloca_handler | ( | gim_alloca_function * | fn | ) |
Definition at line 47 of file gim_memory.cpp.
References g_allocafn, and gim_set_alloca_handler().
Referenced by gim_set_alloca_handler().
| void gim_set_free_handler | ( | gim_free_function * | fn | ) |
Definition at line 57 of file gim_memory.cpp.
References g_freefn, and gim_set_free_handler().
Referenced by gim_set_free_handler().
| void gim_set_realloc_handler | ( | gim_realloc_function * | fn | ) |
Definition at line 52 of file gim_memory.cpp.
References g_reallocfn, and gim_set_realloc_handler().
Referenced by gim_set_realloc_handler().
|
inline |
Definition at line 120 of file gim_memory.h.
References gim_simd_memcpy().
Referenced by gim_array< T >::erase_sorted_mem(), gim_radix_sort(), gim_realloc(), gim_simd_memcpy(), gim_swap_elements_memcpy(), gim_swap_elements_ptr(), gim_array< T >::insert_mem(), memcopy_elements_func::operator()(), and gim_array< T >::push_back_memcpy().
Definition at line 150 of file gim_memory.h.
References gim_swap_elements(), and T.
Referenced by gim_heap_sort(), gim_swap_elements(), and gim_array< T >::swap().
Definition at line 158 of file gim_memory.h.
References gim_simd_memcpy(), gim_swap_elements_memcpy(), and T.
Referenced by gim_swap_elements_memcpy().
|
inline |
Definition at line 167 of file gim_memory.h.
References gim_simd_memcpy(), gim_swap_elements_ptr(), and SIZE.
Referenced by gim_swap_elements_ptr().