head	1.4;
access;
symbols
	RELENG_8_4:1.4.0.2
	RELENG_9_1_0_RELEASE:1.3
	RELENG_9_1:1.3.0.6
	RELENG_9_1_BP:1.3
	RELENG_8_3_0_RELEASE:1.2
	RELENG_8_3:1.2.0.10
	RELENG_8_3_BP:1.2
	RELENG_9_0_0_RELEASE:1.3
	RELENG_9_0:1.3.0.4
	RELENG_9_0_BP:1.3
	RELENG_9:1.3.0.2
	RELENG_9_BP:1.3
	RELENG_7_4_0_RELEASE:1.1.1.2
	RELENG_8_2_0_RELEASE:1.2
	RELENG_7_4:1.1.1.2.0.12
	RELENG_7_4_BP:1.1.1.2
	RELENG_8_2:1.2.0.8
	RELENG_8_2_BP:1.2
	RELENG_8_1_0_RELEASE:1.2
	RELENG_8_1:1.2.0.6
	RELENG_8_1_BP:1.2
	RELENG_7_3_0_RELEASE:1.1.1.2
	RELENG_7_3:1.1.1.2.0.10
	RELENG_7_3_BP:1.1.1.2
	RELENG_8_0_0_RELEASE:1.2
	RELENG_8_0:1.2.0.4
	RELENG_8_0_BP:1.2
	RELENG_8:1.2.0.2
	RELENG_8_BP:1.2
	RELENG_7_2_0_RELEASE:1.1.1.2
	RELENG_7_2:1.1.1.2.0.8
	RELENG_7_2_BP:1.1.1.2
	RELENG_7_1_0_RELEASE:1.1.1.2
	RELENG_6_4_0_RELEASE:1.1.1.1
	RELENG_7_1:1.1.1.2.0.6
	RELENG_7_1_BP:1.1.1.2
	RELENG_6_4:1.1.1.1.0.24
	RELENG_6_4_BP:1.1.1.1
	RELENG_7_0_0_RELEASE:1.1.1.2
	RELENG_6_3_0_RELEASE:1.1.1.1
	RELENG_7_0:1.1.1.2.0.4
	RELENG_7_0_BP:1.1.1.2
	RELENG_6_3:1.1.1.1.0.22
	RELENG_6_3_BP:1.1.1.1
	RELENG_7:1.1.1.2.0.2
	RELENG_7_BP:1.1.1.2
	RELENG_6_2_0_RELEASE:1.1.1.1
	v20050923:1.1.1.2
	RELENG_6_2:1.1.1.1.0.20
	RELENG_6_2_BP:1.1.1.1
	RELENG_5_5_0_RELEASE:1.1.1.1
	RELENG_5_5:1.1.1.1.0.18
	RELENG_5_5_BP:1.1.1.1
	RELENG_6_1_0_RELEASE:1.1.1.1
	RELENG_6_1:1.1.1.1.0.16
	RELENG_6_1_BP:1.1.1.1
	RELENG_6_0_0_RELEASE:1.1.1.1
	RELENG_6_0:1.1.1.1.0.14
	RELENG_6_0_BP:1.1.1.1
	RELENG_6:1.1.1.1.0.12
	RELENG_6_BP:1.1.1.1
	RELENG_5_4_0_RELEASE:1.1.1.1
	RELENG_5_4:1.1.1.1.0.10
	RELENG_5_4_BP:1.1.1.1
	RELENG_5_3_0_RELEASE:1.1.1.1
	RELENG_5_3:1.1.1.1.0.8
	RELENG_5_3_BP:1.1.1.1
	RELENG_5:1.1.1.1.0.6
	RELENG_5_BP:1.1.1.1
	RELENG_5_2_1_RELEASE:1.1.1.1
	v20040118:1.1.1.1
	RELENG_5_2_0_RELEASE:1.1.1.1
	RELENG_5_2:1.1.1.1.0.4
	RELENG_5_2_BP:1.1.1.1
	RELENG_5_1_0_RELEASE:1.1.1.1
	RELENG_5_1:1.1.1.1.0.2
	RELENG_5_1_BP:1.1.1.1
	v20030324:1.1.1.1
	v20030318:1.1.1.1
	v20030305:1.1.1.1
	NETLIB:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2012.12.06.01.33.11;	author svnexp;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2011.03.12.07.03.06;	author das;	state Exp;
branches;
next	1.2;

1.2
date	2009.01.28.04.36.34;	author das;	state Exp;
branches;
next	1.1;

1.1
date	2003.03.12.20.18.16;	author das;	state Exp;
branches
	1.1.1.1;
next	;

1.4.2.1
date	2012.12.06.01.33.11;	author svnexp;	state dead;
branches;
next	1.4.2.2;

1.4.2.2
date	2013.03.28.13.01.11;	author svnexp;	state Exp;
branches;
next	;

1.1.1.1
date	2003.03.12.20.18.16;	author das;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2007.01.03.04.58.49;	author das;	state Exp;
branches;
next	;


desc
@@


1.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/243933
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# /****************************************************************
# Copyright (C) 1998 by Lucent Technologies
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and that both that the copyright notice and this
# permission notice and warranty disclaimer appear in supporting
# documentation, and that the name of Lucent or any of its entities
# not be used in advertising or publicity pertaining to
# distribution of the software without specific, written prior
# permission.
#
# LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
# IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
# THIS SOFTWARE.
#
# ****************************************************************/

.SUFFIXES: .c .o
CC = cc
CFLAGS = -g
AR ?= ar
ARFLAGS ?= ruv

.c.o:
	$(CC) -c $(CFLAGS) $*.c

# invoke "make Printf" to add printf.o to gdtoa.a (if desired)

all: arith.h gd_qnan.h gdtoa.a

arith.h: arithchk.c
	$(CC) $(CFLAGS) arithchk.c || $(CC) -DNO_LONG_LONG $(CFLAGS) arithchk.c
	./a.out >arith.h
	rm -f a.out arithchk.o

gd_qnan.h: arith.h qnan.c
	$(CC) $(CFLAGS) qnan.c
	./a.out >gd_qnan.h
	rm -f a.out qnan.o

gdtoa.a:  dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c\
	 g_ffmt.c g_xLfmt.c g_xfmt.c gdtoa.c gethex.c gmisc.c hd_init.c\
	 hexnan.c misc.c smisc.c strtoIQ.c strtoId.c strtoIdd.c\
	 strtoIf.c strtoIg.c strtoIx.c strtoIxL.c strtod.c strtodI.c\
	 strtodg.c strtof.c strtopQ.c strtopd.c strtopdd.c strtopf.c\
	 strtopx.c strtopxL.c strtorQ.c strtord.c strtordd.c strtorf.c\
	 strtorx.c strtorxL.c sum.c ulp.c
	$(CC) -c $(CFLAGS) $?
	x=`echo $? | sed 's/\.c/.o/g'` && $(AR) $(ARFLAGS) gdtoa.a $$x && rm $$x
	ranlib gdtoa.a || true

Printf: all printf.c
	$(CC) -c $(CFLAGS) printf.c
	$(AR) $(ARFLAGS) gdtoa.a printf.o
	rm printf.o
	touch Printf

# If your system lacks ranlib, you do not need it.

xs0 = README arithchk.c dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c\
	 g_dfmt.c g_ffmt.c g_xLfmt.c g_xfmt.c gdtoa.c gdtoa.h\
	 gdtoa_fltrnds.h gdtoaimp.h gethex.c gmisc.c hd_init.c hexnan.c\
	 makefile misc.c printf.c printf.c0 qnan.c smisc.c stdio1.h\
	 strtoIQ.c strtoId.c strtoIdd.c strtoIf.c strtoIg.c strtoIx.c\
	 strtoIxL.c strtod.c strtodI.c strtodg.c strtodnrp.c strtof.c\
	 strtopQ.c strtopd.c strtopdd.c strtopf.c strtopx.c strtopxL.c\
	 strtorQ.c strtord.c strtordd.c strtorf.c strtorx.c strtorxL.c\
	 sum.c ulp.c

# "make -r xsum.out" to check for transmission errors; source for xsum is
# netlib's "xsum.c from f2c", e.g.,
# ftp://netlib.bell-labs.com/netlib/f2c/xsum.c.gz

xsum.out: xsum0.out $(xs0)
	xsum $(xs0) >xsum1.out
	cmp xsum0.out xsum1.out && mv xsum1.out xsum.out || diff xsum[01].out

clean:
	rm -f arith.h gd_qnan.h *.[ao] Printf xsum.out xsum1.out
@


1.4.2.1
log
@file makefile was added on branch RELENG_8_4 on 2013-03-28 13:01:11 +0000
@
text
@d1 87
@


1.4.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 74
# /****************************************************************
# Copyright (C) 1998 by Lucent Technologies
# All Rights Reserved
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby
# granted, provided that the above copyright notice appear in all
# copies and that both that the copyright notice and this
# permission notice and warranty disclaimer appear in supporting
# documentation, and that the name of Lucent or any of its entities
# not be used in advertising or publicity pertaining to
# distribution of the software without specific, written prior
# permission.
#
# LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
# IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
# THIS SOFTWARE.
#
# ****************************************************************/

.SUFFIXES: .c .o
CC = cc
CFLAGS = -g

.c.o:
	$(CC) -c $(CFLAGS) $*.c

all: arith.h gd_qnan.h gdtoa.a

arith.h: arithchk.c
	$(CC) $(CFLAGS) arithchk.c || $(CC) -DNO_LONG_LONG $(CFLAGS) arithchk.c
	./a.out >arith.h
	rm -f a.out arithchk.o

gd_qnan.h: arith.h qnan.c
	$(CC) $(CFLAGS) qnan.c
	./a.out >gd_qnan.h
	rm -f a.out qnan.o

gdtoa.a: dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c g_ffmt.c\
	 g_xLfmt.c g_xfmt.c gdtoa.c gethex.c gmisc.c hd_init.c hexnan.c\
	 misc.c smisc.c strtoIQ.c strtoId.c strtoIdd.c strtoIf.c strtoIg.c\
	 strtoIx.c strtoIxL.c strtod.c strtodI.c strtodg.c strtof.c strtopQ.c\
	 strtopd.c strtopdd.c strtopf.c strtopx.c strtopxL.c strtorQ.c\
	 strtord.c strtordd.c strtorf.c strtorx.c strtorxL.c sum.c ulp.c
	$(CC) -c $(CFLAGS) $?
	x=`echo $? | sed 's/\.c/.o/g'` && ar ruv gdtoa.a $$x && rm $$x
	ranlib gdtoa.a || true

# If your system lacks ranlib, you do not need it.

xs0 = README arithchk.c dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c\
	 g_ffmt.c g_xLfmt.c g_xfmt.c gdtoa.c gdtoa.h gdtoa_fltrnds.h gdtoaimp.h\
	 gethex.c gmisc.c hd_init.c hexnan.c makefile misc.c qnan.c smisc.c\
	 strtoIQ.c strtoId.c strtoIdd.c strtoIf.c strtoIg.c strtoIx.c strtoIxL.c\
	 strtod.c strtodI.c strtodg.c strtodnrp.c strtof.c strtopQ.c strtopd.c\
	 strtopdd.c strtopf.c strtopx.c strtopxL.c strtorQ.c strtord.c strtordd.c\
	 strtorf.c strtorx.c strtorxL.c sum.c ulp.c

# "make xsum.out" to check for transmission errors; source for xsum is
# netlib's "xsum.c from f2c", e.g.,
# ftp://netlib.bell-labs.com/netlib/f2c/xsum.c.gz

xsum.out: xsum0.out $(xs0)
	xsum $(xs0) >xsum1.out
	cmp xsum0.out xsum1.out && mv xsum1.out xsum.out || diff xsum[01].out

clean:
	rm -f arith.h gd_qnan.h *.[ao] xsum.out xsum1.out
@


1.3
log
@SVN rev 219557 on 2011-03-12 07:03:06Z by das

Merge gdtoa-20110304.
@
text
@d29 2
d57 1
a57 1
	x=`echo $? | sed 's/\.c/.o/g'` && ar ruv gdtoa.a $$x && rm $$x
d62 1
a62 1
	ar ruv gdtoa.a printf.o
@


1.2
log
@SVN rev 187808 on 2009-01-28 04:36:34Z by das

Vendor import of gdtoa 20081205.
@
text
@d33 2
d47 7
a53 6
gdtoa.a: dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c g_ffmt.c\
	 g_xLfmt.c g_xfmt.c gdtoa.c gethex.c gmisc.c hd_init.c hexnan.c\
	 misc.c smisc.c strtoIQ.c strtoId.c strtoIdd.c strtoIf.c strtoIg.c\
	 strtoIx.c strtoIxL.c strtod.c strtodI.c strtodg.c strtof.c strtopQ.c\
	 strtopd.c strtopdd.c strtopf.c strtopx.c strtopxL.c strtorQ.c\
	 strtord.c strtordd.c strtorf.c strtorx.c strtorxL.c sum.c ulp.c
d58 6
d66 9
a74 7
xs0 = README arithchk.c dmisc.c dtoa.c g_Qfmt.c g__fmt.c g_ddfmt.c g_dfmt.c\
	 g_ffmt.c g_xLfmt.c g_xfmt.c gdtoa.c gdtoa.h gdtoa_fltrnds.h gdtoaimp.h\
	 gethex.c gmisc.c hd_init.c hexnan.c makefile misc.c qnan.c smisc.c\
	 strtoIQ.c strtoId.c strtoIdd.c strtoIf.c strtoIg.c strtoIx.c strtoIxL.c\
	 strtod.c strtodI.c strtodg.c strtodnrp.c strtof.c strtopQ.c strtopd.c\
	 strtopdd.c strtopf.c strtopx.c strtopxL.c strtorQ.c strtord.c strtordd.c\
	 strtorf.c strtorx.c strtorxL.c sum.c ulp.c
d76 1
a76 1
# "make xsum.out" to check for transmission errors; source for xsum is
d85 1
a85 1
	rm -f arith.h gd_qnan.h *.[ao] xsum.out xsum1.out
@


1.1
log
@Initial revision
@
text
@d28 1
a28 1
CFLAGS = -g -DINFNAN_CHECK
d33 1
a33 1
all: arith.h gdtoa.a
d40 5
d58 5
a62 5
	 g_ffmt.c g_xLfmt.c g_xfmt.c gdtoa.c gdtoa.h gdtoaimp.h gethex.c\
	 gmisc.c hd_init.c hexnan.c makefile misc.c smisc.c strtoIQ.c\
	 strtoId.c strtoIdd.c strtoIf.c strtoIg.c strtoIx.c strtoIxL.c\
	 strtod.c strtodI.c strtodg.c strtof.c strtopQ.c strtopd.c strtopdd.c\
	 strtopf.c strtopx.c strtopxL.c strtorQ.c strtord.c strtordd.c\
d74 1
a74 1
	rm -f arith.h *.[ao] xsum.out xsum1.out
@


1.1.1.1
log
@Initial import of David Gay's gdtoa library for conversion between
strings and floating point.
@
text
@@


1.1.1.2
log
@Import of the latest gdtoa sources, which include fixes for minor
problems relating to NaNs and rounding.
@
text
@d33 1
a33 1
all: arith.h gd_qnan.h gdtoa.a
a39 5
gd_qnan.h: arith.h qnan.c
	$(CC) $(CFLAGS) qnan.c
	./a.out >gd_qnan.h
	rm -f a.out qnan.o

d54 1
a54 1
	 gmisc.c hd_init.c hexnan.c makefile misc.c qnan.c smisc.c strtoIQ.c\
d56 2
a57 2
	 strtod.c strtodI.c strtodg.c strtodnrp.c strtof.c strtopQ.c strtopd.c\
	 strtopdd.c strtopf.c strtopx.c strtopxL.c strtorQ.c strtord.c strtordd.c\
d69 1
a69 1
	rm -f arith.h gd_qnan.h *.[ao] xsum.out xsum1.out
@

