LibSWIFFT  1.2.0
swifft_common.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Yaron Gvili and Gvili Tech Ltd.
3  *
4  * See the accompanying LICENSE.txt file for licensing information.
5  */
9 #ifndef __LIBSWIFFT_SWIFFT_COMMON_H__
10 #define __LIBSWIFFT_SWIFFT_COMMON_H__
11 
12 #include <stdint.h> // for int16_t
13 #include "libswifft/common.h"
14 
15 typedef unsigned char BitSequence;
16 
18 #define MAX_SWIFFT_VECTOR_LOG2_SIZE 5
19 #define MAX_SWIFFT_VECTOR_SIZE (1 << MAX_SWIFFT_VECTOR_LOG2_SIZE)
21 
23 #define SWIFFT_ALIGNMENT (sizeof(int16_t)*MAX_SWIFFT_VECTOR_SIZE)
24 #define SWIFFT_ALIGN __attribute__ ((aligned (SWIFFT_ALIGNMENT)))
26 
28 #define SWIFFT_INPUT_BLOCK_SIZE 256
29 
31 #define SWIFFT_OUTPUT_BLOCK_SIZE 128
32 
34 #define SWIFFT_COMPACT_BLOCK_SIZE 64
35 
36 #endif /* __LIBSWIFFT_SWIFFT_COMMON_H__ */
unsigned char BitSequence
Basic buffer type.
Definition: swifft_common.h:15
LibSWIFFT public C common definitions.