|
Dist m4ri 0.16.1
Computing distance of a classical or quantum CSS code
|
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | TIM_SORT_RUN_T |
| struct | TEMP_STORAGE_T |
| #define BINARY_INSERTION_FIND SORT_MAKE_STR(binary_insertion_find) |
| #define BINARY_INSERTION_SORT SORT_MAKE_STR(binary_insertion_sort) |
Definition at line 171 of file sort.h.
Referenced by BITONIC_SORT().
| #define BINARY_INSERTION_SORT_START SORT_MAKE_STR(binary_insertion_sort_start) |
Definition at line 170 of file sort.h.
Referenced by BINARY_INSERTION_SORT().
| #define BITONIC_SORT SORT_MAKE_STR(bitonic_sort) |
| #define BITONIC_SORT_10 SORT_MAKE_STR(bitonic_sort_10) |
Definition at line 359 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_11 SORT_MAKE_STR(bitonic_sort_11) |
Definition at line 393 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_12 SORT_MAKE_STR(bitonic_sort_12) |
Definition at line 433 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_13 SORT_MAKE_STR(bitonic_sort_13) |
Definition at line 477 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_14 SORT_MAKE_STR(bitonic_sort_14) |
Definition at line 527 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_15 SORT_MAKE_STR(bitonic_sort_15) |
Definition at line 583 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_16 SORT_MAKE_STR(bitonic_sort_16) |
Definition at line 644 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_2 SORT_MAKE_STR(bitonic_sort_2) |
Definition at line 229 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_3 SORT_MAKE_STR(bitonic_sort_3) |
Definition at line 235 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_4 SORT_MAKE_STR(bitonic_sort_4) |
Definition at line 243 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_5 SORT_MAKE_STR(bitonic_sort_5) |
Definition at line 253 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_6 SORT_MAKE_STR(bitonic_sort_6) |
Definition at line 267 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_7 SORT_MAKE_STR(bitonic_sort_7) |
Definition at line 284 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_8 SORT_MAKE_STR(bitonic_sort_8) |
Definition at line 305 of file sort.h.
Referenced by BITONIC_SORT().
| #define BITONIC_SORT_9 SORT_MAKE_STR(bitonic_sort_9) |
Definition at line 329 of file sort.h.
Referenced by BITONIC_SORT().
| #define CHECK_INVARIANT SORT_MAKE_STR(check_invariant) |
Definition at line 174 of file sort.h.
Referenced by TIM_SORT().
| #define COUNT_RUN SORT_MAKE_STR(count_run) |
| #define HEAP_SIFT_DOWN SORT_MAKE_STR(heap_sift_down) |
Definition at line 192 of file sort.h.
Referenced by HEAP_SORT().
| #define HEAP_SORT SORT_MAKE_STR(heap_sort) |
| #define HEAPIFY SORT_MAKE_STR(heapify) |
Definition at line 193 of file sort.h.
Referenced by HEAP_SORT().
| #define MAX | ( | x, | |
| y ) |
Definition at line 54 of file sort.h.
Referenced by csr_init(), and csr_transpose().
| #define MEDIAN SORT_MAKE_STR(median) |
| #define MERGE_SORT SORT_MAKE_STR(merge_sort) |
| #define MERGE_SORT_IN_PLACE SORT_MAKE_STR(merge_sort_in_place) |
Definition at line 184 of file sort.h.
Referenced by MERGE_SORT_IN_PLACE().
| #define MERGE_SORT_IN_PLACE_ASWAP SORT_MAKE_STR(merge_sort_in_place_aswap) |
Definition at line 188 of file sort.h.
Referenced by MERGE_SORT_IN_PLACE(), MERGE_SORT_IN_PLACE_BACKMERGE(), MERGE_SORT_IN_PLACE_FRONTMERGE(), and MERGE_SORT_IN_PLACE_RMERGE().
| #define MERGE_SORT_IN_PLACE_BACKMERGE SORT_MAKE_STR(merge_sort_in_place_backmerge) |
Definition at line 186 of file sort.h.
Referenced by MERGE_SORT_IN_PLACE(), and MERGE_SORT_IN_PLACE_RMERGE().
| #define MERGE_SORT_IN_PLACE_FRONTMERGE SORT_MAKE_STR(merge_sort_in_place_frontmerge) |
Definition at line 187 of file sort.h.
Referenced by MERGE_SORT_IN_PLACE().
| #define MERGE_SORT_IN_PLACE_RMERGE SORT_MAKE_STR(merge_sort_in_place_rmerge) |
Definition at line 185 of file sort.h.
Referenced by MERGE_SORT_IN_PLACE().
| #define MERGE_SORT_RECURSIVE SORT_MAKE_STR(merge_sort_recursive) |
Definition at line 183 of file sort.h.
Referenced by MERGE_SORT(), and MERGE_SORT_RECURSIVE().
| #define PUSH_NEXT SORT_MAKE_STR(push_next) |
Definition at line 196 of file sort.h.
Referenced by TIM_SORT().
| #define QUICK_SORT SORT_MAKE_STR(quick_sort) |
| #define QUICK_SORT_PARTITION SORT_MAKE_STR(quick_sort_partition) |
| #define QUICK_SORT_RECURSIVE SORT_MAKE_STR(quick_sort_recursive) |
Definition at line 191 of file sort.h.
Referenced by QUICK_SORT().
| #define REVERSE_ELEMENTS SORT_MAKE_STR(reverse_elements) |
| #define SHELL_SORT SORT_MAKE_STR(shell_sort) |
| #define SMALL_SORT BITONIC_SORT |
Definition at line 157 of file sort.h.
Referenced by MERGE_SORT_IN_PLACE().
| #define SMALL_SORT_BND 16 |
Definition at line 154 of file sort.h.
Referenced by MERGE_SORT(), MERGE_SORT_IN_PLACE(), and MERGE_SORT_RECURSIVE().
| #define SMALL_STABLE_SORT BINARY_INSERTION_SORT |
Definition at line 161 of file sort.h.
Referenced by MERGE_SORT(), MERGE_SORT_RECURSIVE(), and TIM_SORT().
| #define SORT_CMP | ( | x, | |
| y ) |
Definition at line 19 of file sort.h.
Referenced by MERGE_SORT_IN_PLACE(), MERGE_SORT_IN_PLACE_BACKMERGE(), MERGE_SORT_IN_PLACE_FRONTMERGE(), MERGE_SORT_IN_PLACE_RMERGE(), MERGE_SORT_RECURSIVE(), and SHELL_SORT().
| #define SORT_CSWAP | ( | x, | |
| y ) |
| #define SORT_DELETE_BUFFER SORT_MAKE_STR(sort_delete_buffer) |
Definition at line 167 of file sort.h.
Referenced by MERGE_SORT().
| #define SORT_MAKE_STR | ( | x | ) |
| #define SORT_MAKE_STR1 | ( | x, | |
| y ) |
| #define SORT_NEW_BUFFER SORT_MAKE_STR(sort_new_buffer) |
Definition at line 166 of file sort.h.
Referenced by MERGE_SORT().
| #define SORT_SWAP | ( | x, | |
| y ) |
Definition at line 46 of file sort.h.
Referenced by HEAP_SORT(), MERGE_SORT_IN_PLACE(), MERGE_SORT_IN_PLACE_ASWAP(), MERGE_SORT_IN_PLACE_BACKMERGE(), and MERGE_SORT_IN_PLACE_FRONTMERGE().
| #define SORT_TYPE_CPY | ( | dst, | |
| src, | |||
| size ) |
| #define SORT_TYPE_CPY SORT_MAKE_STR(sort_type_cpy) |
Definition at line 164 of file sort.h.
Referenced by MERGE_SORT_RECURSIVE().
| #define SORT_TYPE_MOVE | ( | dst, | |
| src, | |||
| size ) |
| #define SORT_TYPE_MOVE SORT_MAKE_STR(sort_type_move) |
| #define TEMP_STORAGE_T SORT_MAKE_STR(temp_storage_t) |
Definition at line 195 of file sort.h.
Referenced by TIM_SORT().
| #define TIM_SORT SORT_MAKE_STR(tim_sort) |
| #define TIM_SORT_COLLAPSE SORT_MAKE_STR(tim_sort_collapse) |
Definition at line 178 of file sort.h.
Referenced by TIM_SORT().
| #define TIM_SORT_MERGE SORT_MAKE_STR(tim_sort_merge) |
| #define TIM_SORT_RESIZE SORT_MAKE_STR(tim_sort_resize) |
| #define TIM_SORT_RUN_T SORT_MAKE_STR(tim_sort_run_t) |
Definition at line 194 of file sort.h.
Referenced by TIM_SORT().
| #define TIM_SORT_STACK_SIZE 128 |
Definition at line 42 of file sort.h.
Referenced by TIM_SORT().
Definition at line 939 of file sort.h.
References BINARY_INSERTION_SORT_START, SORT_DEF, and SORT_TYPE.
Definition at line 708 of file sort.h.
References BINARY_INSERTION_SORT, BITONIC_SORT_10, BITONIC_SORT_11, BITONIC_SORT_12, BITONIC_SORT_13, BITONIC_SORT_14, BITONIC_SORT_15, BITONIC_SORT_16, BITONIC_SORT_2, BITONIC_SORT_3, BITONIC_SORT_4, BITONIC_SORT_5, BITONIC_SORT_6, BITONIC_SORT_7, BITONIC_SORT_8, BITONIC_SORT_9, SORT_DEF, and SORT_TYPE.
Definition at line 1209 of file sort.h.
References MERGE_SORT_RECURSIVE, SMALL_SORT_BND, SMALL_STABLE_SORT, SORT_DEF, SORT_DELETE_BUFFER, SORT_NEW_BUFFER, and SORT_TYPE.
Definition at line 1074 of file sort.h.
References MERGE_SORT_IN_PLACE, MERGE_SORT_IN_PLACE_ASWAP, MERGE_SORT_IN_PLACE_BACKMERGE, MERGE_SORT_IN_PLACE_FRONTMERGE, MERGE_SORT_IN_PLACE_RMERGE, p, SMALL_SORT, SMALL_SORT_BND, SORT_CMP, SORT_DEF, SORT_SWAP, and SORT_TYPE.
Definition at line 1027 of file sort.h.
References MERGE_SORT_IN_PLACE_ASWAP, MERGE_SORT_IN_PLACE_BACKMERGE, SORT_CMP, SORT_DEF, and SORT_TYPE.
Definition at line 1168 of file sort.h.
References MERGE_SORT_RECURSIVE, SMALL_SORT_BND, SMALL_STABLE_SORT, SORT_CMP, SORT_DEF, SORT_TYPE, and SORT_TYPE_CPY.
| void QUICK_SORT | ( | SORT_TYPE * | dst, |
| const size_t | size ) |
Definition at line 1392 of file sort.h.
References QUICK_SORT_RECURSIVE, and SORT_TYPE.
Definition at line 1676 of file sort.h.
References TEMP_STORAGE_T::alloc, CHECK_INVARIANT, PUSH_NEXT, SMALL_STABLE_SORT, SORT_DEF, SORT_TYPE, TEMP_STORAGE_T::storage, TEMP_STORAGE_T, TIM_SORT_COLLAPSE, TIM_SORT_RUN_T, and TIM_SORT_STACK_SIZE.