YAARX: Yet Another ARX Toolkit
0.1
|
#include <common.hh>
Public Member Functions | |
bool | operator() (differential_3d_t a, differential_3d_t b) |
Compare two differentials a,b by the magnitute of the indexes a_idx, b_idx: lower indices are listed first. For example, the indices of the differentials a(dx,dy,p) and b(dx,dy,p) are a_idx = (a.dx 2^{2n} + a.dy 2^{n} + a.dz) = (a.dx | a.dy | a.dz) and b_idx = (b.dx 2^{2n} + b.dy 2^{n} + b.dz) = (b.dx | b.dy | b.dz) where n is the word size and '|' denotes concatenation. Thus a_idx and b_idx are compared.