diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2020-05-05 01:17:37 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2020-05-05 01:17:37 +0000 |
commit | 2da7c5a8f69fd8a2defe86a652f234a233f06bb7 (patch) | |
tree | 1279332d2704bd448ba8604078b436aaa31c7bc4 /math/flexfloat/files | |
parent | science/lammps: Update 15Apr2020 -> 5May2020 (diff) |
New port: math/flexfloat: C library for the emulation of reduced-precision floating point types
Notes
Notes:
svn path=/head/; revision=534003
Diffstat (limited to 'math/flexfloat/files')
-rw-r--r-- | math/flexfloat/files/patch-CMakeLists.txt | 11 | ||||
-rw-r--r-- | math/flexfloat/files/patch-include_flexfloat.h | 16 |
2 files changed, 27 insertions, 0 deletions
diff --git a/math/flexfloat/files/patch-CMakeLists.txt b/math/flexfloat/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..6abb8483323d --- /dev/null +++ b/math/flexfloat/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2020-05-04 23:28:52 UTC ++++ CMakeLists.txt +@@ -29,7 +29,7 @@ set(library_SOURCES + src/flexfloat.c + ) + +-add_library(flexfloat STATIC ${library_SOURCES}) ++add_library(flexfloat SHARED ${library_SOURCES}) + + target_include_directories(flexfloat PUBLIC ${PROJECT_SOURCE_DIR}/include) + diff --git a/math/flexfloat/files/patch-include_flexfloat.h b/math/flexfloat/files/patch-include_flexfloat.h new file mode 100644 index 000000000000..849c5452902c --- /dev/null +++ b/math/flexfloat/files/patch-include_flexfloat.h @@ -0,0 +1,16 @@ +--- include/flexfloat.h.orig 2020-05-04 23:21:19 UTC ++++ include/flexfloat.h +@@ -40,9 +40,10 @@ extern "C" { + #pragma STDC FENV_ACCESS ON + #endif + +-#ifndef __STDC_IEC_559__ +-#error "Implementation not IEEE compliant" +-#endif ++// not clear why this should/shouldn't ++//#ifndef __STDC_IEC_559__ ++//#error "Implementation not IEEE compliant" ++//#endif + + // GCC versions before 8.2 (for sure not on 7.2, don't know when it was fixed) don't raise flags on comparisons correctly + #if !defined(__GNUC__) || (defined(__GNUC__) && (__GNUC__ >= 8) && (__GNUC_MINOR__ >= 2)) |