Yet Another eXchange Tool  0.9.0
Classes | Functions
xt_stripe_util.h File Reference
#include <stdbool.h>
#include <stdlib.h>
#include "xt/xt_stripe.h"
#include "xt_arithmetic_util.h"
Include dependency graph for xt_stripe_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Xt_stripe_minmax
 

Functions

static struct Xt_stripe_minmax xt_stripe2minmax (struct Xt_stripe stripe)
 
static int xt_stripes_overlap (struct Xt_stripe a, struct Xt_stripe b)
 
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)
 

Detailed Description

Author
Jörg Behrens behre.nosp@m.ns@d.nosp@m.krz.d.nosp@m.e Moritz Hanke hanke.nosp@m.@dkr.nosp@m.z.de Thomas Jahns jahns.nosp@m.@dkr.nosp@m.z.de

Definition in file xt_stripe_util.h.

Function Documentation

◆ xt_convert_indices_to_stripes_keep_buf()

void xt_convert_indices_to_stripes_keep_buf ( const Xt_int *restrict  indices,
int  num_indices,
struct Xt_stripe **  stripes,
int *  num_stripes 
)

Definition at line 74 of file xt_stripe.c.

Here is the caller graph for this function:

◆ xt_stripe2minmax()

static struct Xt_stripe_minmax xt_stripe2minmax ( struct Xt_stripe  stripe)
inlinestatic

Definition at line 1 of file xt_stripe_util.h.

Here is the caller graph for this function:

◆ xt_stripes_merge_copy()

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)

Parameters
num_stripesnumber of stripes stored at stripes_src
stripes_dsttarget array able to hold at least num_stripes stripes
stripes_srcsource array containing num_stripes stripes to be copied to stripes_dst
lookbackif true, inspects also stripes_dst[-1] for possible fusion with stripes_src[0]
Returns
number of stripes written to stripes_dst

Definition at line 122 of file xt_stripe.c.

Here is the caller graph for this function:

◆ xt_stripes_overlap()

static int xt_stripes_overlap ( struct Xt_stripe  a,
struct Xt_stripe  b 
)
inlinestatic

Definition at line 79 of file xt_stripe_util.h.

Here is the call graph for this function: