| version 1.3, 2000/08/22 05:04:12 |
version 1.9, 2020/10/04 03:14:08 |
|
|
| * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
| * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
| * |
* |
| * $OpenXM: OpenXM_contrib2/asir2000/fft/dft.h,v 1.2 2000/08/21 08:31:33 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/fft/dft.h,v 1.8 2018/03/29 01:32:53 noro Exp $ |
| */ |
*/ |
| #if LONG_IS_32BIT |
#if SIZEOF_LONG == 8 |
| #if defined(VISUAL) |
typedef unsigned long UL; |
| typedef unsigned _int64 UL; |
#elif defined(HAVE_UNSIGNED_LONG_LONG) |
| #else |
|
| typedef unsigned long long UL; |
typedef unsigned long long UL; |
| |
#elif defined(_MSC_VER) |
| |
typedef unsigned _int64 UL; |
| #endif |
#endif |
| #else |
|
| typedef unsigned long UL; |
|
| #endif |
|
| |
|
| |
int dmar(int,int,int,int); |
| |
|
| struct PrimesS { |
struct PrimesS { |
| int prime, primroot; |
int prime, primroot; |
| int bitwid, d; |
int bitwid, d; |
| }; |
}; |
| |
|
| #if USE_FLOAT |
#if defined(USE_FLOAT) |
| #define NPrimes 536 |
#define NPrimes 536 |
| #else |
#else |
| #define NPrimes 13681 |
#define NPrimes 13681 |
| #endif |
#endif |
| |
|
| #if USE_FLOAT |
#if defined(USE_FLOAT) |
| typedef float ModNum; |
typedef float ModNum; |
| |
|
| #define AxBplusCmodP(ans,anstype,a,b,c,p,pinv) \ |
#define AxBplusCmodP(ans,anstype,a,b,c,p,pinv) \ |
| Line 99 typedef float ModNum; |
|
| Line 99 typedef float ModNum; |
|
| |
|
| typedef unsigned int ModNum; |
typedef unsigned int ModNum; |
| |
|
| |
/* XXX */ |
| |
#if defined(__DARWIN__) |
| |
#undef DMAR |
| |
#define DMAR(a1,a2,a3,d,r) (r)=dmar(a1,a2,a3,d); |
| |
#endif |
| |
|
| #define AxBplusCmodP(ans,anstype,a,b,c,p,pinv) \ |
#define AxBplusCmodP(ans,anstype,a,b,c,p,pinv) \ |
| { DMAR(a,b,c,p,ans) } |
{ DMAR(a,b,c,p,ans) } |
| |
|
| Line 119 typedef unsigned int ModNum; |
|
| Line 125 typedef unsigned int ModNum; |
|
| |
|
| void C_DFT_FORE(ModNum *,int,int,int,ModNum *, |
void C_DFT_FORE(ModNum *,int,int,int,ModNum *, |
| #ifdef POWA_STRIDE |
#ifdef POWA_STRIDE |
| int |
int |
| #else |
#else |
| ModNum *,int,ModNum,double,ModNum * |
ModNum *,int,ModNum,double,ModNum * |
| #endif |
#endif |
| ); |
); |
| |
|
| void C_DFT_BACK(ModNum *,int,int,int,ModNum *, |
void C_DFT_BACK(ModNum *,int,int,int,ModNum *, |
| #ifdef POWA_STRIDE |
#ifdef POWA_STRIDE |
| int |
int |
| #else |
#else |
| ModNum *,int,int,int,ModNum,ModNum,double,ModNum * |
ModNum *,int,int,int,ModNum,ModNum,double,ModNum * |
| #endif |
#endif |
| ); |
); |
| |
|