2001-02-14 Wolfram Gloger <wg@malloc.de>
* malloc/malloc.c (new_heap): When allocating large chunk aligned
to HEAP_MAX_SIZE, prefer one with lower address, to avoid `holes'
between the heaps.
+2001-02-14 Wolfram Gloger <wg@malloc.de>
+
+ * malloc/malloc.c (new_heap): When allocating large chunk aligned
+ to HEAP_MAX_SIZE, prefer one with lower address, to avoid `holes'
+ between the heaps.
+
2001-02-14 Ulrich Drepper <drepper@redhat.com>
* math/libm-test.inc (j0_test): Check whether sincos is available.
anyway). */
p1 = (char *)MMAP(0, HEAP_MAX_SIZE<<1, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE);
if(p1 != MAP_FAILED) {
- p2 = (char *)(((unsigned long)p1 + HEAP_MAX_SIZE) & ~(HEAP_MAX_SIZE-1));
+ p2 = (char *)(((unsigned long)p1 + (HEAP_MAX_SIZE-1)) & ~(HEAP_MAX_SIZE-1));
ul = p2 - p1;
munmap(p1, ul);
munmap(p2 + HEAP_MAX_SIZE, HEAP_MAX_SIZE - ul);
static void
j1_test (void)
{
+ FLOAT s, c;
errno = 0;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
static void
jn_test (void)
{
+ FLOAT s, c;
errno = 0;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
static void
y0_test (void)
{
+ FLOAT s, c;
errno = 0;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
static void
y1_test (void)
{
+ FLOAT s, c;
errno = 0;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)
static void
yn_test (void)
{
+ FLOAT s, c;
errno = 0;
FUNC (sincos) (0, &s, &c);
if (errno == ENOSYS)