Lines Matching +full:memory +full:- +full:mapped

24 #define DIFF_RC_USE_DIFF_ALGO_FALLBACK	-1
31 off_t pos; /* set whether memory-mapped or not */
32 const uint8_t *at; /* only set if memory-mapped */
48 * Set cmp to -1, 0, or 1, just like strcmp(). */
60 ((ATOM) && ((ATOM) >= (DIFF_DATA)->root->atoms.head) \
61 ? (unsigned int)((ATOM) - ((DIFF_DATA)->root->atoms.head)) \
62 : (DIFF_DATA)->root->atoms.len)
67 ((ATOM) && ((ATOM) >= (DIFF_DATA)->atoms.head) \
68 ? (unsigned int)((ATOM) - ((DIFF_DATA)->atoms.head)) \
69 : (DIFF_DATA)->atoms.len)
75 && ((ATOM) - (FIRST_ATOM) < (COUNT)); \
79 foreach_diff_atom(ATOM, (DIFF_DATA)->atoms.head, (DIFF_DATA)->atoms.len)
84 && ((ATOM) >= (DIFF_DATA)->atoms.head) \
85 && ((ATOM) - (DIFF_DATA)->atoms.head < (DIFF_DATA)->atoms.len); \
91 && ((ATOM) >= (DIFF_DATA)->atoms.head) \
92 && ((ATOM) - (DIFF_DATA)->atoms.head >= 0); \
93 (ATOM)--)
98 * re-using the atoms parsing. For "root" structs, atoms_allocated will be
103 FILE *f; /* if root diff_data and not memory-mapped */
104 off_t pos; /* if not memory-mapped */
105 const uint8_t *data; /* if memory-mapped */
162 * d: struct diff_data with d->data and d->len already set up, and
163 * d->atoms to be created and d->atomizer_flags to be set up.
173 /* Form a result with all left-side removed and all right-side added, i.e. no
179 * quadratic amounts of memory. This can fail if the required space surpasses
180 * algo_config->permitted_state_size. */
186 * Requires only linear amounts of memory. */
192 * needs a fallback algo to solve chunks that don't have common-unique atoms. */
230 /* Fail this algo if it would use more than this amount of memory, and
240 * state, or diff_algo_patience can't find any common-unique atoms),