spLib
読み取り中…
検索中…
一致する文字列を見つけられません
base.h
1/*
2 * base.h
3 */
4
5#ifndef SPLIB_BASE_H
6#define SPLIB_BASE_H
7
8#include <sp/spBase.h>
9#include <sp/spFile.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifndef round
16#define round spRound
17#endif
18#ifndef fix
19#define fix spFix
20#endif
21#ifndef rem
22#define rem spRem
23#endif
24#ifndef factorial
25#define factorial spFactorial
26#endif
27#ifndef ftos
28#define ftos spFtos
29#endif
30#ifndef nextpow2
31#define nextpow2 spNextPow2
32#endif
33
34#define setwarningflag spSetWarningFlag
35#define spwarning spWarning
36#define setmessageflag spSetMessageFlag
37#define spmessage spMessage
38#define sperror spError
39#define setdebugstdout spSetDebugStdout
40#define setdebuglevel spSetDebugLevel
41#define spdebug spDebug
42#define spprogerror spProgError
43
44#if defined(MACOS)
45#pragma import on
46#endif
47
48extern spBool spSrand(unsigned int seed);
49extern void spRandunNoInit(void);
50extern float spRandunf(void);
51extern float spRandun1f(void);
52extern double spRandun(void);
53extern double spRandun1(void);
54extern void spGaussUseRand(int flag);
55extern float spGaussf(float mu, float sigma);
56extern double spGauss(double mu, double sigma);
57#define spRandnf() spGaussf(0.0f, 1.0f)
58#define spRandn() spGauss(0.0, 1.0)
59extern long spGcd(long x, long y);
60extern void spCExpf(float *xr, float *xi);
61extern void spCExp(double *xr, double *xi);
62extern void spCLogf(float *xr, float *xi);
63extern void spCLog(double *xr, double *xi);
64extern void spCLog10f(float *xr, float *xi);
65extern void spCLog10(double *xr, double *xi);
66extern void spRandSort(void *data, int num, int size);
67extern void spDecibel(double *x, long length);
68extern void spDecibelp(double *x, long length);
69
70#if defined(MACOS)
71#pragma import off
72#endif
73
74#define randun_no_init spRandunNoInit
75#define randunf spRandunf
76#define randun1f spRandun1f
77#define randun spRandun
78#define randun1 spRandun1
79#define gauss_use_rand spGaussUseRand
80#define gaussf spGaussf
81#define gauss spGauss
82#define gcd spGcd
83#define cexpf spCExpf
84#define cexp spCExp
85#define clogf spCLogf
86#define clog spCLog
87#define clog10f spCLog10f
88#define clog10 spCLog10
89#define randsort spRandSort
90#define decibel spDecibel
91#define decibelp spDecibelp
92
93#define randn spRandn
94
95#ifdef __cplusplus
96} /* Close scope of 'extern "C"' declaration */
97#endif
98
99#endif /* SPLIB_BASE_H */
int spBool