forked from pool/fast_float
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 74dc4f940e | |||
| b0dec84df9 | |||
| 5ad2c5e414 | |||
| f1cf917636 | |||
| 269f1e9c0a | |||
| b01b093979 | |||
| 573cc3fe98 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7e98671ef4cc7ed7f44b3b13f80156c8d2d9244fac55deace28bd05b0a2c7c8e
|
||||
size 94395
|
||||
3
fast_float-8.1.0.tar.gz
Normal file
3
fast_float-8.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4bfabb5979716995090ce68dce83f88f99629bc17ae280eae79311c5340143e1
|
||||
size 125830
|
||||
@@ -1,3 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 7 16:11:47 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Update to release 8.1.0
|
||||
* Implementation of P2497
|
||||
* Implemented multiplication of integer by a power of 10
|
||||
* Do not mis-parse certain wide-character emojis as integer
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 17 17:46:52 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||
|
||||
- Update to version 8.0.2:
|
||||
* No relevant changes.
|
||||
- Changes from version 8.0.1:
|
||||
* Fix various build warnings.
|
||||
- Changes from version 8.0.0:
|
||||
* Add version macros.
|
||||
* Better compile time error messages for unsupported types.
|
||||
* Support char8_t on C++20.
|
||||
* Introduce equiv_uint_t helper.
|
||||
* 16-bit float support.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 18 05:58:09 UTC 2025 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
- Update to 7.0.0:
|
||||
+ Iplus/minus handling in parse_infnan
|
||||
+ enum class chars_format
|
||||
+ Add allow_leading_plus and skip_white_space in chars_format
|
||||
- Drop upstream make_supplemental_tests_optional.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 25 22:18:48 UTC 2023 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package fast_float
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,15 +17,13 @@
|
||||
|
||||
|
||||
Name: fast_float
|
||||
Version: 6.0.0
|
||||
Version: 8.1.0
|
||||
Release: 0
|
||||
Summary: A fast number parsing library
|
||||
Summary: Re-implementation of std::from_chars for parsing strings into numbers
|
||||
License: Apache-2.0 OR BSL-1.0 OR MIT
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/fastfloat/fast_float
|
||||
Source: https://github.com/fastfloat/fast_float/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch0: https://patch-diff.githubusercontent.com/raw/fastfloat/fast_float/pull/233.patch#/make_supplemental_tests_optional.patch
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: cmake
|
||||
BuildRequires: cmake(doctest)
|
||||
@@ -51,7 +49,6 @@ from_chars functions for float and double types as well as integer types.
|
||||
-DFASTFLOAT_SUPPLEMENTAL_TESTS:BOOL=OFF \
|
||||
-DSYSTEM_DOCTEST:BOOL=ON \
|
||||
%{nil}
|
||||
#exit 1
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
@@ -64,8 +61,6 @@ from_chars functions for float and double types as well as integer types.
|
||||
%license LICENSE-APACHE LICENSE-BOOST LICENSE-MIT
|
||||
%doc README.md
|
||||
%{_includedir}/fast_float
|
||||
%dir %{_datadir}/cmake
|
||||
%{_datadir}/cmake/FastFloat
|
||||
%{_datadir}/cmake/
|
||||
|
||||
%changelog
|
||||
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
From 7f46adc19c8f3c3034fa9da91718db7b52c18763 Mon Sep 17 00:00:00 2001
|
||||
From: StefanBruens <stefan.bruens@rwth-aachen.de>
|
||||
Date: Tue, 26 Dec 2023 01:56:05 +0100
|
||||
Subject: [PATCH] Make tests depending on supplemental_test_files optional
|
||||
|
||||
As the supplemental_test_files are quite large, it is useful to make
|
||||
running the tests depending on it optional.
|
||||
|
||||
By default, the tests are kept enabled, but can be switched of by setting
|
||||
`FASTFLOAT_SUPPLEMENTAL_TEST=OFF`.
|
||||
|
||||
Fixes: #232
|
||||
---
|
||||
tests/CMakeLists.txt | 33 +++++++++++++++++++++------------
|
||||
tests/basictest.cpp | 2 ++
|
||||
2 files changed, 23 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||||
index 2cf649c..2718f47 100644
|
||||
--- a/tests/CMakeLists.txt
|
||||
+++ b/tests/CMakeLists.txt
|
||||
@@ -5,16 +5,18 @@ cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
|
||||
include(FetchContent)
|
||||
|
||||
option(SYSTEM_DOCTEST "Use system copy of doctest" OFF)
|
||||
+option(FASTFLOAT_SUPPLEMENTAL_TESTS "Run supplemental tests" ON)
|
||||
|
||||
if (NOT SYSTEM_DOCTEST)
|
||||
FetchContent_Declare(doctest
|
||||
GIT_REPOSITORY https://github.com/onqtam/doctest.git
|
||||
GIT_TAG v2.4.10)
|
||||
endif()
|
||||
-FetchContent_Declare(supplemental_test_files
|
||||
- GIT_REPOSITORY https://github.com/fastfloat/supplemental_test_files.git
|
||||
- GIT_TAG origin/main)
|
||||
-
|
||||
+if (FASTFLOAT_SUPPLEMENTAL_TESTS)
|
||||
+ FetchContent_Declare(supplemental_test_files
|
||||
+ GIT_REPOSITORY https://github.com/fastfloat/supplemental_test_files.git
|
||||
+ GIT_TAG origin/main)
|
||||
+endif()
|
||||
|
||||
|
||||
# FetchContent_MakeAvailable() was only introduced in 3.14
|
||||
@@ -27,15 +29,19 @@ if (NOT SYSTEM_DOCTEST)
|
||||
add_subdirectory(${doctest_SOURCE_DIR} ${doctest_BINARY_DIR})
|
||||
endif()
|
||||
endif()
|
||||
-FetchContent_GetProperties(supplemental_test_files)
|
||||
-if(NOT supplemental_test_files_POPULATED)
|
||||
- message(STATUS "Tests enabled. Retrieving test files.")
|
||||
- FetchContent_Populate(supplemental_test_files)
|
||||
- message(STATUS "Test files retrieved.")
|
||||
- add_subdirectory(${supplemental_test_files_SOURCE_DIR} ${supplemental_test_files_BINARY_DIR})
|
||||
-endif()
|
||||
+
|
||||
add_library(supplemental-data INTERFACE)
|
||||
-target_compile_definitions(supplemental-data INTERFACE SUPPLEMENTAL_TEST_DATA_DIR="${supplemental_test_files_BINARY_DIR}/data")
|
||||
+if (FASTFLOAT_SUPPLEMENTAL_TESTS)
|
||||
+ FetchContent_GetProperties(supplemental_test_files)
|
||||
+ if(NOT supplemental_test_files_POPULATED)
|
||||
+ message(STATUS "Supplemental tests enabled. Retrieving test files.")
|
||||
+ FetchContent_Populate(supplemental_test_files)
|
||||
+ message(STATUS "Supplemental test files retrieved.")
|
||||
+ add_subdirectory(${supplemental_test_files_SOURCE_DIR} ${supplemental_test_files_BINARY_DIR})
|
||||
+ endif()
|
||||
+ target_compile_definitions(supplemental-data INTERFACE SUPPLEMENTAL_TEST_DATA_DIR="${supplemental_test_files_BINARY_DIR}/data")
|
||||
+endif()
|
||||
+
|
||||
function(fast_float_add_cpp_test TEST_NAME)
|
||||
add_executable(${TEST_NAME} ${TEST_NAME}.cpp)
|
||||
if(CMAKE_CROSSCOMPILING)
|
||||
@@ -67,6 +73,9 @@ if (FASTFLOAT_CONSTEXPR_TESTS)
|
||||
else()
|
||||
target_compile_features(basictest PRIVATE cxx_std_17)
|
||||
endif()
|
||||
+if (FASTFLOAT_SUPPLEMENTAL_TESTS)
|
||||
+ target_compile_definitions(basictest PRIVATE FASTFLOAT_SUPPLEMENTAL_TESTS)
|
||||
+endif()
|
||||
|
||||
fast_float_add_cpp_test(long_test)
|
||||
fast_float_add_cpp_test(powersoffive_hardround)
|
||||
diff --git a/tests/basictest.cpp b/tests/basictest.cpp
|
||||
index 3d7f753..b1b6769 100644
|
||||
--- a/tests/basictest.cpp
|
||||
+++ b/tests/basictest.cpp
|
||||
@@ -246,6 +246,7 @@ TEST_CASE("parse_negative_zero") {
|
||||
CHECK(float64_parsed == 0x8000'0000'0000'0000);
|
||||
}
|
||||
|
||||
+#if FASTFLOAT_SUPPLEMENTAL_TESTS
|
||||
// C++ 17 because it is otherwise annoying to browse all files in a directory.
|
||||
// We also only run these tests on little endian systems.
|
||||
#if (FASTFLOAT_CPLUSPLUS >= 201703L) && (FASTFLOAT_IS_BIG_ENDIAN == 0) && !defined(FASTFLOAT_ODDPLATFORM)
|
||||
@@ -336,6 +337,7 @@ TEST_CASE("supplemental") {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
TEST_CASE("leading_zeroes") {
|
||||
constexpr const uint64_t bit = 1;
|
||||
Reference in New Issue
Block a user