New port: math/half: C++ library for half precision floating point arithmetic

This commit is contained in:
Yuri Victorovich 2020-04-26 21:32:58 +00:00
parent 6e4c5541ef
commit af24a3a1a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533085
4 changed files with 36 additions and 0 deletions

View file

@ -310,6 +310,7 @@
SUBDIR += gringo
SUBDIR += grpn
SUBDIR += gsl
SUBDIR += half
SUBDIR += hexcalc
SUBDIR += hipmcl
SUBDIR += hmat-oss

25
math/half/Makefile Normal file
View file

@ -0,0 +1,25 @@
# $FreeBSD$
PORTNAME= half
DISTVERSION= 2.1.0
CATEGORIES= math
MASTER_SITES= SF
MAINTAINER= yuri@FreeBSD.org
COMMENT= C++ library for half precision floating point arithmetic
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= zip
NO_WRKSUBDIR= yes
NO_BUILD= yes
NO_ARCH= yes
PLIST_FILES= include/half.hpp
do-install:
${INSTALL_DATA} ${WRKSRC}/include/half.hpp ${STAGEDIR}${PREFIX}/include
.include <bsd.port.mk>

3
math/half/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1587931990
SHA256 (half-2.1.0.zip) = ad1788afe0300fa2b02b0d1df128d857f021f92ccf7c8bddd07812685fa07a25
SIZE (half-2.1.0.zip) = 47043

7
math/half/pkg-descr Normal file
View file

@ -0,0 +1,7 @@
half is a C++ header-only library to provide an IEEE 754 conformant 16-bit
half-precision floating-point type along with corresponding arithmetic
operators, type conversions and common mathematical functions. It aims for
both efficiency and ease of use, trying to accurately mimic the behaviour of
the built-in floating-point types at the best performance possible.
WWW: http://half.sourceforge.net/