Honeycomb  0.1
Component-Model Framework
Namespaces | Macros
Chacha.cpp File Reference
#include "Honey/Math/Random/Chacha.h"
#include "Honey/Math/Random/Random.h"
#include "Honey/String/Hash.h"
#include "Honey/Thread/Atomic.h"
Include dependency graph for Chacha.cpp:

Namespaces

 honey
 Global Honeycomb namespace.
 

Macros

#define ROTATE(v, c)   (BitOp::rotLeft(v,c))
 
#define XOR(v, w)    ((v) ^ (w))
 
#define PLUS(v, w)    ((v) + (w))
 
#define PLUSONE(v)   (PLUS((v),1))
 
#define QUARTERROUND(a, b, c, d)
 

Macro Definition Documentation

#define PLUS (   v,
 
)    ((v) + (w))
#define PLUSONE (   v)    (PLUS((v),1))
#define QUARTERROUND (   a,
  b,
  c,
 
)
Value:
a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \
c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \
c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
#define PLUS(v, w)
Definition: Chacha.cpp:13
#define XOR(v, w)
Definition: Chacha.cpp:12
#define ROTATE(v, c)
Definition: Chacha.cpp:11
#define ROTATE (   v,
 
)    (BitOp::rotLeft(v,c))
#define XOR (   v,
 
)    ((v) ^ (w))