Yet Another eXchange Tool
0.9.0
|
#include <stdbool.h>
#include <stdlib.h>
#include "xt/xt_core.h"
#include "xt/xt_stripe.h"
#include "xt_stripe_util.h"
#include "core/ppm_xfuncs.h"
#include "instr.h"
#include "ensure_array_size.h"
Go to the source code of this file.
Functions | |
void | xt_convert_indices_to_stripes (const Xt_int *restrict indices, int num_indices, struct Xt_stripe **stripes, int *num_stripes) |
void | xt_convert_indices_to_stripes_keep_buf (const Xt_int *restrict indices, int num_indices, struct Xt_stripe **stripes, int *num_stripes) |
size_t | xt_stripes_merge_copy (size_t num_stripes, struct Xt_stripe *stripes_dst, const struct Xt_stripe *stripes_src, bool lookback) |
Definition in file xt_stripe.c.
size_t xt_stripes_merge_copy | ( | size_t | num_stripes, |
struct Xt_stripe * | stripes_dst, | ||
const struct Xt_stripe * | stripes_src, | ||
bool | lookback | ||
) |
copy stripes_src to stripes_dst, fusing trivially adjacent stripes (i.e. having same stride and matching bounds)
num_stripes | number of stripes stored at stripes_src |
stripes_dst | target array able to hold at least num_stripes stripes |
stripes_src | source array containing num_stripes stripes to be copied to stripes_dst |
lookback | if true, inspects also stripes_dst[-1] for possible fusion with stripes_src[0] |
Definition at line 122 of file xt_stripe.c.