Multi-ApplicationOnlineProfiling
2.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
CRC64.c
Go to the documentation of this file.
1
/* ############################ MALP License ############################## */
2
/* # Fri Jan 18 14:00:00 CET 2013 # */
3
/* # Copyright or (C) or Copr. Commissariat a l'Energie Atomique # */
4
/* # # */
5
/* # This software is governed by the CeCILL-C license under French law # */
6
/* # and abiding by the rules of distribution of free software. You can # */
7
/* # use, modify and/ or redistribute the software under the terms of # */
8
/* # the CeCILL-C license as circulated by CEA, CNRS and INRIA at the # */
9
/* # following URL http://www.cecill.info. # */
10
/* # # */
11
/* # The fact that you are presently reading this means that you have # */
12
/* # had knowledge of the CeCILL-C license and that you accept its # */
13
/* # terms. # */
14
/* # # */
15
/* # Authors: # */
16
/* # - BESNARD Jean-Baptiste jean-baptiste.besnard@cea.fr # */
17
/* # # */
18
/* ######################################################################## */
19
#include "
CRC64.h
"
20
21
22
#define CRC64REV 0xC96C5795D7870F42ULL
23
24
uint64_t
crc_table
[256];
25
26
void
MALP_Trace_crc64_init
()
27
{
28
uint64_t i = 0;
29
int
j = 0;
30
31
for
(i = 0; i < 256; i++) {
32
crc_table
[i] = i;
33
for
(j = 0; j < 8; j++) {
34
crc_table
[i] = (
crc_table
[i] & 1)?((
crc_table
[i] >> 1) ^
CRC64REV
) : (
crc_table
[i] >> 1 );
35
}
36
}
37
}
38
39
CRC64REV
#define CRC64REV
Definition:
CRC64.c:22
CRC64.h
crc_table
uint64_t crc_table[256]
crc_table
Definition:
CRC64.c:24
MALP_Trace_crc64_init
void MALP_Trace_crc64_init()
This initializes the CRC64 internals.
Definition:
CRC64.c:26
src
Common
CRC64.c
Generated on Mon Mar 14 2016 00:01:09 for Multi-ApplicationOnlineProfiling by
1.8.6