Aliases/Globals Header/Object for the NTTW C Library.
More...
#include <limits.h>
Go to the source code of this file.
Detailed Description
Aliases/Globals Header/Object for the NTTW C Library.
NTTW Library Aliases
This header provides all the relevant macros, alaises and constants used in the library.
This file is part of NTTW Library.
NTTW is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
NTTW is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with NTTW. If not, see <http://www.gnu.org/licenses/>.
- Author:
- Shekhar S. Chandra, 2009
Definition in file global.h.
Define Documentation
#define ALIGNOF |
( |
|
type |
) |
__alignof__(type) |
Macro for determining the alignment of a variable. Cross platform.
Definition at line 115 of file global.h.
#define BITS 8*sizeof(long) |
Define for the number of bits of the local machine.
Definition at line 144 of file global.h.
Align the integers to match SSE register sizes. UNUSED.
Definition at line 75 of file global.h.
Define for False Boolean.
Definition at line 90 of file global.h.
#define FORMAT_BIG_CSVOUTPUT_STR "%u," |
#define FORMAT_BIG_OUTPUT_STR "%u " |
#define FORMAT_CSVOUTPUT_STR "%hu," |
#define FORMAT_INPUT_STR "%hu" |
#define FORMAT_OUTPUT_STR "%hu " |
#define IS64BITMODE ( MACHINE_MAX>INT_MAX ? 1 : 0 ) |
Macro for determining if 64-bit mode. Returns Boolean.
Definition at line 132 of file global.h.
#define MACHINE_MAX LONG_MAX |
Define for the machine architecture type.
Definition at line 122 of file global.h.
#define NTTW_BIGINT_MAX UINT_MAX |
#define NTTW_BIGINT_MIN 0 |
DLL Function Symbol for Windows. It is empty for other OSes.
Definition at line 67 of file global.h.
Define for Forward transform of NTTs.
Definition at line 98 of file global.h.
#define NTTW_INT_MAX USHRT_MAX |
Define for Inverse transform of NTTs.
Definition at line 105 of file global.h.
#define NTTW_VERSION 0x000001 |
#define NTTW_VERSION_STR "1.0.0" |
#define ROUND |
( |
|
x |
) |
( (x)>=0 ? (long)((x)+0.5) : (long)((x)-0.5) ) |
Macro for rounding an floating point number.
Definition at line 127 of file global.h.
#define SWAP |
( |
|
a, |
|
|
|
b | |
|
) |
| | {a ^= b; b ^= a; a ^= b;} |
Macro for swapping the contents of two variables.
Definition at line 137 of file global.h.
Define for True Boolean.
Definition at line 83 of file global.h.
Typedef Documentation