Derecho  0.9
Distributed systems toolkit for RDMA
Classes | Namespaces | Macros | Functions | Variables
version_code.cpp File Reference
#include <derecho/core/detail/version_code.hpp>
#include <derecho/core/git_version.hpp>
#include <functional>
Include dependency graph for version_code.cpp:

Go to the source code of this file.

Classes

struct  s1
 
struct  s2
 
struct  s3
 
struct  s4
 
struct  s5
 

Namespaces

 derecho
 

Macros

#define ISGNU   0
 
#define ISCLANG   (1 << 32)
 

Functions

uint64_t mix (uint64_t v1, uint64_t v2)
 A simple hash-combine function to "mix" two hashcodes. More...
 
uint64_t derecho::version_hashcode ()
 The function that computes the Derecho version hashcode. More...
 

Variables

const uint64_t compiler = ISCLANG | (__clang_major__ << 16) + __clang_minor__ )
 
const uint64_t derecho_version
 
char int16_array [2] {1, 2}
 
char int32_array [4] {1, 2, 3, 4}
 
char int64_array [8] {1, 2, 3, 4, 5, 6, 7, 8}
 
float a_float = 123.4560001
 
double a_double = 654.3210000987
 
const uint64_t int16_offset = (uint64_t)offsetof(struct s1, the_int)
 
const uint64_t int32_offset = (uint64_t)offsetof(struct s2, the_int)
 
const uint64_t int64_offset1 = (uint64_t)offsetof(struct s3, the_int)
 
const uint64_t int64_offset2 = (uint64_t)offsetof(struct s4, the_int)
 
const uint64_t int64_offset3 = (uint64_t)offsetof(struct s5, the_int)
 
uint64_t int_offset_hash
 

Class Documentation

◆ s1

struct s1

Definition at line 38 of file version_code.cpp.

Class Members
char something
int16_t the_int

◆ s2

struct s2

Definition at line 44 of file version_code.cpp.

Class Members
char something
int32_t the_int

◆ s3

struct s3

Definition at line 50 of file version_code.cpp.

Class Members
char something
int64_t the_int

◆ s4

struct s4

Definition at line 57 of file version_code.cpp.

Class Members
float fsomething
char something
int64_t the_int

◆ s5

struct s5

Definition at line 64 of file version_code.cpp.

Class Members
double dsomething
char something
int64_t the_int

Macro Definition Documentation

◆ ISCLANG

#define ISCLANG   (1 << 32)

Definition at line 11 of file version_code.cpp.

◆ ISGNU

#define ISGNU   0

Definition at line 10 of file version_code.cpp.

Function Documentation

◆ mix()

uint64_t mix ( uint64_t  v1,
uint64_t  v2 
)

A simple hash-combine function to "mix" two hashcodes.

Definition at line 6 of file version_code.cpp.

Variable Documentation

◆ a_double

double a_double = 654.3210000987

Definition at line 36 of file version_code.cpp.

◆ a_float

float a_float = 123.4560001

Definition at line 35 of file version_code.cpp.

◆ compiler

const uint64_t compiler = ISCLANG | (__clang_major__ << 16) + __clang_minor__ )

Definition at line 15 of file version_code.cpp.

◆ derecho_version

const uint64_t derecho_version
Initial value:
= ((((static_cast<uint64_t>(derecho::MAJOR_VERSION) << 16)
<< 32)
const int COMMITS_AHEAD_OF_VERSION
If the currently-compiled version of the Derecho library is more recent than the last "release" versi...
Definition: git_version.cpp:35
const int MAJOR_VERSION
The current major version number of the Derecho library, as defined by Git.
Definition: git_version.cpp:32
const int MINOR_VERSION
The current minor version number of the Derecho library, as defined by Git.
Definition: git_version.cpp:33

Definition at line 18 of file version_code.cpp.

◆ int16_array

char int16_array[2] {1, 2}

Definition at line 30 of file version_code.cpp.

◆ int16_offset

const uint64_t int16_offset = (uint64_t)offsetof(struct s1, the_int)

Definition at line 42 of file version_code.cpp.

◆ int32_array

char int32_array[4] {1, 2, 3, 4}

Definition at line 31 of file version_code.cpp.

◆ int32_offset

const uint64_t int32_offset = (uint64_t)offsetof(struct s2, the_int)

Definition at line 48 of file version_code.cpp.

◆ int64_array

char int64_array[8] {1, 2, 3, 4, 5, 6, 7, 8}

Definition at line 32 of file version_code.cpp.

◆ int64_offset1

const uint64_t int64_offset1 = (uint64_t)offsetof(struct s3, the_int)

Definition at line 55 of file version_code.cpp.

◆ int64_offset2

const uint64_t int64_offset2 = (uint64_t)offsetof(struct s4, the_int)

Definition at line 62 of file version_code.cpp.

◆ int64_offset3

const uint64_t int64_offset3 = (uint64_t)offsetof(struct s5, the_int)

Definition at line 70 of file version_code.cpp.

◆ int_offset_hash

uint64_t int_offset_hash
Initial value:
const uint64_t int16_offset
const uint64_t int64_offset2
uint64_t mix(uint64_t v1, uint64_t v2)
A simple hash-combine function to "mix" two hashcodes.
Definition: version_code.cpp:6
const uint64_t int64_offset1
const uint64_t int64_offset3
const uint64_t int32_offset

Definition at line 72 of file version_code.cpp.