10 #ifndef __LIBSWIFFT_SWIFFT_HPP__ 11 #define __LIBSWIFFT_SWIFFT_HPP__ 113 return !(so1 == so2);
129 return !(sc1 == sc2);
168 memset(lhs.
data, value,
sizeof(lhs.
data));
188 memset(lhs.
data, value,
sizeof(lhs.
data));
253 #endif // __LIBSWIFFT_SWIFFT_HPP__ BitSequence data[SWIFFT_COMPACT_BLOCK_SIZE]
The compact-form data structure.
Definition: swifft.hpp:69
#define SWIFFT_ALIGN
Align attribute for SWIFFT vector.
Definition: swifft_common.h:25
void LIBSWIFFT_API() SWIFFT_ConstAdd(BitSequence output[SWIFFT_OUTPUT_BLOCK_SIZE], const int16_t operand)
Adds a constant value to each SWIFFT hash value element.
Definition: swifft.c:156
Definition: swifft.hpp:16
unsigned char BitSequence
Basic buffer type.
Definition: swifft_common.h:15
#define SWIFFT_INPUT_BLOCK_SIZE
The size in bytes of SWIFFT input.
Definition: swifft_common.h:28
LIBSWIFFT_INLINE SwifftCompact & operator=(const BitSequence value)
Set all 8-bit elements to a value.
Definition: swifft.hpp:80
LIBSWIFFT_INLINE SwifftOutput & operator=(const int16_t value)
Set all 16-bit elements to a value.
Definition: swifft.hpp:62
void LIBSWIFFT_API() SWIFFT_ConstMul(BitSequence output[SWIFFT_OUTPUT_BLOCK_SIZE], const int16_t operand)
Multiply a constant value into each SWIFFT hash value element.
Definition: swifft.c:176
LIBSWIFFT_INLINE SwifftOutput & operator=(const SwifftOutput &rhs)
Copy a source SWIFFT output.
Definition: swifft.hpp:57
LIBSWIFFT_INLINE SwifftOutput & operator-=(SwifftOutput &lhs, const int16_t value)
Subtracts a value from each 16-bit element of a SWIFFT output data structure.
Definition: swifft.hpp:207
An auto-memory-aligned SWIFFT compact-form data structure.
Definition: swifft.hpp:67
LIBSWIFFT_INLINE SwifftCompact & operator=(const SwifftCompact &rhs)
Copy a source SWIFFT compact-form.
Definition: swifft.hpp:75
void LIBSWIFFT_API() SWIFFT_Mul(BitSequence output[SWIFFT_OUTPUT_BLOCK_SIZE], const BitSequence operand[SWIFFT_OUTPUT_BLOCK_SIZE])
Multiplies a SWIFFT hash value from another, element-wise.
Definition: swifft.c:216
SwifftInput & Set(SwifftInput &lhs, const BitSequence value)
Set all 8-bit elements of a SWIFFT input data structure to a value.
Definition: swifft.hpp:167
An auto-memory-aligned SWIFFT output data structure.
Definition: swifft.hpp:49
void LIBSWIFFT_API() SWIFFT_Sub(BitSequence output[SWIFFT_OUTPUT_BLOCK_SIZE], const BitSequence operand[SWIFFT_OUTPUT_BLOCK_SIZE])
Subtracts a SWIFFT hash value from another, element-wise.
Definition: swifft.c:206
SwifftInput & Copy(SwifftInput &dst, const SwifftInput &src)
Copy a SWIFFT input data structure.
Definition: swifft.hpp:137
LIBSWIFFT_INLINE bool operator!=(const SwifftInput &si1, const SwifftInput &si2)
Tests for inequality of two SWIFFT input data structures.
Definition: swifft.hpp:96
BitSequence data[SWIFFT_OUTPUT_BLOCK_SIZE]
The output data structure.
Definition: swifft.hpp:51
#define LIBSWIFFT_INLINE
Definition: common.h:19
void LIBSWIFFT_API() SWIFFT_ConstSub(BitSequence output[SWIFFT_OUTPUT_BLOCK_SIZE], const int16_t operand)
Subtracts a constant value from each SWIFFT hash value element.
Definition: swifft.c:166
#define SWIFFT_OUTPUT_BLOCK_SIZE
The size in bytes of SWIFFT output block.
Definition: swifft_common.h:31
#define SWIFFT_COMPACT_BLOCK_SIZE
The size in bytes of SWIFFT compact-form.
Definition: swifft_common.h:34
void LIBSWIFFT_API() SWIFFT_ConstSet(BitSequence output[SWIFFT_OUTPUT_BLOCK_SIZE], const int16_t operand)
Sets a constant value at each SWIFFT hash value element.
Definition: swifft.c:146
LIBSWIFFT_INLINE bool operator==(const SwifftInput &si1, const SwifftInput &si2)
Tests for equality of two SWIFFT input data structures.
Definition: swifft.hpp:88
LIBSWIFFT_INLINE SwifftOutput & operator*=(SwifftOutput &lhs, const int16_t value)
Multiplies each 16-bit element of a SWIFFT output data structure by a value.
Definition: swifft.hpp:216
void LIBSWIFFT_API() SWIFFT_Add(BitSequence output[SWIFFT_OUTPUT_BLOCK_SIZE], const BitSequence operand[SWIFFT_OUTPUT_BLOCK_SIZE])
Adds a SWIFFT hash value to another, element-wise.
Definition: swifft.c:196
LIBSWIFFT_INLINE SwifftOutput & operator+=(SwifftOutput &lhs, const int16_t value)
Adds a value to each 16-bit element of a SWIFFT output data structure.
Definition: swifft.hpp:197