mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-28 20:43:41 +01:00
Make tests build.
This commit is contained in:
parent
2e2a1b8a9a
commit
440055a3b6
4 changed files with 17 additions and 3 deletions
2
test/.gitignore
vendored
Normal file
2
test/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/test-float
|
||||||
|
/test-double
|
13
test/Makefile
Normal file
13
test/Makefile
Normal file
|
@ -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
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue