LibSWIFFT  1.2.0
Macros | Functions
swifft_keygen.cpp File Reference

LibSWIFFT internal C code generation. More...

#include <iostream>
#include <fstream>
#include <iomanip>
#include "libswifft/swifft.h"
#include "swifft_ops.inl"
Include dependency graph for swifft_keygen.cpp:

Macros

#define SWIFFT_ISET()   SWIFFT_INSTRUCTION_SET
 

Functions

void writeArray (std::ofstream &out, const int16_t *arr, size_t arrlen, const char *arrsig)
 Writes an array of 16-bit elements in C source-code format. More...
 
int main (int argc, char **argv)
 Writes C source code for the generated SWIFFT key into a file given as the first argument of the program. More...
 

Detailed Description

LibSWIFFT internal C code generation.

Macro Definition Documentation

◆ SWIFFT_ISET

#define SWIFFT_ISET ( )    SWIFFT_INSTRUCTION_SET

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Writes C source code for the generated SWIFFT key into a file given as the first argument of the program.

◆ writeArray()

void writeArray ( std::ofstream &  out,
const int16_t *  arr,
size_t  arrlen,
const char *  arrsig 
)

Writes an array of 16-bit elements in C source-code format.

Parameters
[in,out]outthe output stream to write to.
[in]arrthe array to write.
[in]arrlenthe length of the array.
[in]arrsiga signature of the array: a suffix-name followed by dimensions specification.