liberasurecode 1.8.0
Erasure Code API library
Loading...
Searching...
No Matches
Functions | Variables
xor_code.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "xor_code.h"

Go to the source code of this file.

Functions

 __attribute__ ((visibility("internal")))
 
void xor_code_encode (xor_code_t *code_desc, char **data, char **parity, int blocksize)
 
int xor_reconstruct_one (xor_code_t *code_desc, char **data, char **parity, int *missing_idxs, int index_to_reconstruct, int blocksize)
 

Variables

static const int g_bit_lookup []
 

Function Documentation

◆ __attribute__()

__attribute__ ( (visibility("internal"))  )

Definition at line 43 of file xor_code.c.

References g_bit_lookup.

◆ xor_code_encode()

void xor_code_encode ( xor_code_t *  code_desc,
char **  data,
char **  parity,
int  blocksize 
)

Definition at line 189 of file xor_code.c.

Referenced by init_xor_hd_code().

◆ xor_reconstruct_one()

int xor_reconstruct_one ( xor_code_t *  code_desc,
char **  data,
char **  parity,
int *  missing_idxs,
int  index_to_reconstruct,
int  blocksize 
)

Definition at line 257 of file xor_code.c.

Referenced by flat_xor_hd_reconstruct().

Variable Documentation

◆ g_bit_lookup

const int g_bit_lookup[]
static
Initial value:
= {0x1, 0x2, 0x4, 0x8,
0x10, 0x20, 0x40, 0x80,
0x100, 0x200, 0x400, 0x800,
0x1000, 0x2000, 0x4000, 0x8000,
0x10000, 0x20000, 0x40000, 0x80000,
0x100000, 0x200000, 0x400000, 0x800000,
0x1000000, 0x2000000, 0x4000000, 0x8000000,
0x10000000, 0x20000000, 0x40000000, 0x80000000}

Definition at line 34 of file xor_code.c.

Referenced by __attribute__().