diff options
author | Dalibor Topic <robilad@yahoo.com> | 2006-01-06 01:27:20 +0000 |
---|---|---|
committer | Dalibor Topic <robilad@yahoo.com> | 2006-01-06 01:27:20 +0000 |
commit | 18bf94cdf57ede34155e50e19f505237b31bb71f (patch) | |
tree | 6b9897afab0ffb07ab5c3a2865decdec44e7989a /native/fdlibm/mprec.c | |
parent | 116004884916fc0f438e0c338313f7052bce63d8 (diff) | |
download | classpath-18bf94cdf57ede34155e50e19f505237b31bb71f.tar.gz |
Replaced use of JvAssert by assert and removed java-assert.h
2006-01-06 Dalibor Topic <robilad@kaffe.org>
* native/fdlibm/Makefile.am (libfdlibm_la_SOURCES): Removed java-assert.h.
* native/fdlibm/java-assert.h: Removed file.
* native/fdlibm/mprec.c: Include assert.h. Don't include java-assert.h.
Replaced use of JvAssert by assert.
Diffstat (limited to 'native/fdlibm/mprec.c')
-rw-r--r-- | native/fdlibm/mprec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/native/fdlibm/mprec.c b/native/fdlibm/mprec.c index 00679ed39..48bf0d1aa 100644 --- a/native/fdlibm/mprec.c +++ b/native/fdlibm/mprec.c @@ -80,9 +80,9 @@ * down depends on the machine and the number being converted. */ +#include <assert.h> #include <stdlib.h> #include <string.h> -#include <java-assert.h> #include "mprec.h" /* reent.c knows this value */ @@ -97,12 +97,12 @@ _DEFUN (Balloc, (ptr, k), struct _Jv_reent *ptr _AND int k) int i = 0; int j = 1; - JvAssert ((1 << k) < MAX_BIGNUM_WDS); + assert ((1 << k) < MAX_BIGNUM_WDS); while ((ptr->_allocation_map & j) && i < MAX_BIGNUMS) i++, j <<= 1; - JvAssert (i < MAX_BIGNUMS); + assert (i < MAX_BIGNUMS); if (i >= MAX_BIGNUMS) return NULL; @@ -124,7 +124,7 @@ _DEFUN (Bfree, (ptr, v), struct _Jv_reent *ptr _AND _Jv_Bigint * v) i = v - ptr->_freelist; - JvAssert (i >= 0 && i < MAX_BIGNUMS); + assert (i >= 0 && i < MAX_BIGNUMS); if (i >= 0 && i < MAX_BIGNUMS) ptr->_allocation_map &= ~ (1 << i); |