https://github.com/FreeDisciplina/FunctionalGraphStatistics
Tip revision: 47a5539ceeb1d26482895157c1f0a0402fda8303 authored by Zhenzhen Bao on 09 February 2018, 20:40:06 UTC
Add results for n=26
Add results for n=26
Tip revision: 47a5539
globalvars.h
#ifndef GLOBALVAR_H__
#define GLOBALVAR_H__
#include "declares.h"
extern u64 n;
extern data_t W16v[256 * 256][16];
extern IppsAESSpec * pCtx1;
extern IppsSMS4Spec * pCtx2;
#define initfunc(CIPHER, pCtx) \
{ \
status = ipps##CIPHER##GetSize(&ctxSize); \
pCtx = (Ipps##CIPHER##Spec *)malloc(ctxSize); \
status = ipps##CIPHER##Init(pKey, keylen, pCtx, ctxSize); \
switch (status) \
{ \
case ippStsNoErr: /*cout << "ippStsNoErr: Indicates no error." << endl;*/ break; \
case ippStsNullPtrErr: cout << "ippStsNullPtrErr: Indicates an error condition if the pCtx pointer is NULL." << endl; break; \
case ippStsLengthErr: cout << "ippStsLengthErr: Returns an error condition if keyLen is not equal to 16, 24, or 32." << endl; break; \
case ippStsMemAllocErr: cout << "ippStsMemAllocErr: Indicates an error condition if the allocated memory is insufficient for the operation." << endl; break; \
default: break; \
} \
}
#define endfunc(pCtx) \
{ \
if (pCtx != NULL) \
{ \
free(pCtx); \
} \
}
data_t func1(data_t x);
data_t func2(data_t x);
typedef data_t(*func_t)(data_t x);
#endif