Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_array_utils.h
| Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | _bli_array_iter_span(arr, \ | ||||
| test_fn, \ | test_fn, \ | ||||
| user_data, \ | user_data, \ | ||||
| span_step, \ | span_step, \ | ||||
| r_span_len) | r_span_len) | ||||
| bool _bli_array_is_zeroed(const void *arr, unsigned int arr_len, size_t arr_stride); | bool _bli_array_is_zeroed(const void *arr, unsigned int arr_len, size_t arr_stride); | ||||
| #define BLI_array_is_zeroed(arr, arr_len) _bli_array_is_zeroed(arr, arr_len, sizeof(*(arr))) | #define BLI_array_is_zeroed(arr, arr_len) _bli_array_is_zeroed(arr, arr_len, sizeof(*(arr))) | ||||
| bool _bli_array_iter_spiral_square(const void *arr_v, | |||||
| const int arr_shape[2], | |||||
| const size_t arr_stride[2], | |||||
| const int center[2], | |||||
| const bool (*test_fn)(const void *arr_item, void *user_data), | |||||
| void *user_data); | |||||
| #define BLI_array_iter_spiral_square(arr, arr_shape, center, test_fn, user_data) \ | |||||
| _bli_array_iter_spiral_square(arr, \ | |||||
| arr_shape, \ | |||||
| (size_t[2]){arr_shape[1] * sizeof(*(arr)), sizeof(*(arr))}, \ | |||||
| center, \ | |||||
| test_fn, \ | |||||
| user_data) | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||