Motr  M0
vec.c File Reference
#include "ut/ut.h"
#include "lib/vec.h"
#include "lib/memory.h"
#include "lib/misc.h"
#include "lib/assert.h"
#include "lib/bitmap.h"
#include "lib/time.h"
#include "lib/arith.h"
#include "lib/errno.h"
Include dependency graph for vec.c:

Go to the source code of this file.

Enumerations

enum  { NR = 255, IT = 6, NR2 = 127 }
 

Functions

static void test_ivec_cursor (void)
 
static void test_bufvec_cursor (void)
 
static void test_bufvec_cursor_copyto_copyfrom (void)
 
static void test_indexvec_varr_cursor (void)
 
static void test_cmp (void)
 
void test_vec (void)
 
static struct m0_bufvecsplit (const char *src, int n)
 

Variables

static m0_bcount_t segs [NR *IT]
 
static struct m0_vec t
 
static const char abc [] = "vextcwmflyjabszingqurdkoph"
 
static const char aBc [] = "vextcwmflyjabszingQurdkoph"
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
NR 
IT 
NR2 

Definition at line 39 of file vec.c.

Function Documentation

◆ split()

static struct m0_bufvec* split ( const char *  src,
int  n 
)
static

Definition at line 641 of file vec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_bufvec_cursor()

static void test_bufvec_cursor ( void  )
static

Definition at line 365 of file vec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_bufvec_cursor_copyto_copyfrom()

static void test_bufvec_cursor_copyto_copyfrom ( void  )
static

Definition at line 516 of file vec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_cmp()

static void test_cmp ( void  )
static

Definition at line 693 of file vec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_indexvec_varr_cursor()

static void test_indexvec_varr_cursor ( void  )
static

Definition at line 156 of file vec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_ivec_cursor()

static void test_ivec_cursor ( void  )
static

Definition at line 265 of file vec.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_vec()

void test_vec ( void  )

Definition at line 52 of file vec.c.

Here is the call graph for this function:

Variable Documentation

◆ abc

const char abc[] = "vextcwmflyjabszingqurdkoph"
static

Definition at line 690 of file vec.c.

◆ aBc

const char aBc[] = "vextcwmflyjabszingQurdkoph"
static

Definition at line 691 of file vec.c.

◆ segs

m0_bcount_t segs[NR *IT]
static

Definition at line 45 of file vec.c.

◆ t

struct m0_vec t
static
Initial value:
= {
.v_nr = NR * IT,
.v_count = segs
}
static m0_bcount_t segs[NR *IT]
Definition: vec.c:45
Definition: vec.c:40
Definition: vec.c:41

Definition at line 47 of file vec.c.