A library that performs fast, accurate conversion between double precision floating point and text. This library is implemented as bindings to the C++ double-conversion library written by Florian Loitsch at Google: http://code.google.com/p/double-conversion/ The Text versions of these functions are about 30 times faster than the default show implementation for the Double type. The ByteString versions are slower than the Text versions; roughly half the speed. (This seems to be due to the cost of allocating ByteString values via malloc.)
14 lines
471 B
Makefile
14 lines
471 B
Makefile
# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/09/27 13:43:39 phonohawk Exp $
|
|
|
|
BUILDLINK_TREE+= hs-double-conversion
|
|
|
|
.if !defined(HS_DOUBLE_CONVERSION_BUILDLINK3_MK)
|
|
HS_DOUBLE_CONVERSION_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.hs-double-conversion+= hs-double-conversion>=0.2
|
|
BUILDLINK_PKGSRCDIR.hs-double-conversion?= ../../wip/hs-double-conversion
|
|
|
|
.include "../../wip/hs-text/buildlink3.mk"
|
|
.endif # HS_DOUBLE_CONVERSION_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -hs-double-conversion
|