Make tests build.
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
/test-float
|
||||||
|
/test-double
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
OPENLIBM_HOME=$(abspath ..)
|
||||||
|
include ../Make.inc
|
||||||
|
|
||||||
|
all: test-double test-float
|
||||||
|
|
||||||
|
test-double: test-double.c
|
||||||
|
gcc $< -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
|
||||||
|
|
||||||
|
test-float: test-float.c
|
||||||
|
gcc $< -D__BSD_VISIBLE -I ../include -I../src ../libopenlibm.a -o $@
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ *# test-double test-float
|
||||||
+2
-2
@@ -122,12 +122,12 @@
|
|||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <fenv.h>
|
#include <fenv.h>
|
||||||
#else
|
#else
|
||||||
#include "math.h"
|
#include "openlibm.h"
|
||||||
#include "float.h"
|
#include "float.h"
|
||||||
#include "fenv.h"
|
#include "fenv.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 1 /* XXX scp XXX */
|
#if 0 /* XXX scp XXX */
|
||||||
#define FE_INEXACT FE_INEXACT
|
#define FE_INEXACT FE_INEXACT
|
||||||
#define FE_DIVBYZERO FE_DIVBYZERO
|
#define FE_DIVBYZERO FE_DIVBYZERO
|
||||||
#define FE_UNDERFLOW FE_UNDERFLOW
|
#define FE_UNDERFLOW FE_UNDERFLOW
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
test-float.c [plain text]
|
|
||||||
/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
|
Contributed by Andreas Jaeger <aj@suse.de>, 1997.
|
||||||
|
|||||||
Reference in New Issue
Block a user