diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-23 09:06:02 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-23 09:06:02 +0000 |
| commit | d0b0af847e500eb17d64e32d76e36e6cc91d5b83 (patch) | |
| tree | 4202edd8b8b6b2cf2650564716b86bf2bc660163 /ext | |
| parent | 756e804e378ff33b54a8bb06761c81aed02786bd (diff) | |
* ext/bigdecimal/bigdecimal.{c,h} (VpIsNegDoubleZero, VpItoV): unused.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/bigdecimal/bigdecimal.c | 4 | ||||
| -rw-r--r-- | ext/bigdecimal/bigdecimal.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 636c0907d6..e54ea34a20 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -2180,12 +2180,14 @@ VpGetDoubleNegZero(void) /* Returns the value of -0 */ return nzero; } +#if 0 VP_EXPORT int VpIsNegDoubleZero(double v) { double z = VpGetDoubleNegZero(); return MemCmp(&v,&z,sizeof(v))==0; } +#endif VP_EXPORT int VpException(unsigned short f, const char *str,int always) @@ -4154,6 +4156,7 @@ Exit: return; } +#if 0 /* * m <- ival */ @@ -4214,6 +4217,7 @@ Exit: #endif /* _DEBUG */ return; } +#endif /* * y = SQRT(x), y*y - x =>0 diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h index 4f77feab00..513fa245b2 100644 --- a/ext/bigdecimal/bigdecimal.h +++ b/ext/bigdecimal/bigdecimal.h @@ -127,7 +127,9 @@ VP_EXPORT unsigned long VpGetRoundMode(void); VP_EXPORT unsigned long VpSetRoundMode(unsigned long n); VP_EXPORT int VpException(unsigned short f,const char *str,int always); +#if 0 VP_EXPORT int VpIsNegDoubleZero(double v); +#endif VP_EXPORT U_LONG VpNumOfChars(Real *vp,const char *pszFmt); VP_EXPORT U_LONG VpInit(U_LONG BaseVal); VP_EXPORT void *VpMemAlloc(U_LONG mb); @@ -146,7 +148,9 @@ VP_EXPORT void VpToFString(Real *a,char *psz,int fFmt,int fPlus); VP_EXPORT int VpCtoV(Real *a,const char *int_chr,U_LONG ni,const char *frac,U_LONG nf,const char *exp_chr,U_LONG ne); VP_EXPORT int VpVtoD(double *d,S_LONG *e,Real *m); VP_EXPORT void VpDtoV(Real *m,double d); +#if 0 VP_EXPORT void VpItoV(Real *m,S_INT ival); +#endif VP_EXPORT int VpSqrt(Real *y,Real *x); VP_EXPORT int VpActiveRound(Real *y,Real *x,int f,int il); VP_EXPORT int VpMidRound(Real *y, int f, int nf); |
