Skip to content

Commit ac1e4dd

Browse files
committed
2 parents b79c3e5 + 0920535 commit ac1e4dd

File tree

8 files changed

+414
-1132
lines changed

8 files changed

+414
-1132
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ requires C++11):
1818
from_chars_result from_chars(char const *first, char const *last, float &value, ...);
1919
from_chars_result from_chars(char const *first, char const *last, double &value, ...);
2020
```
21+
If they are available on your system, we also support fixed-width floating-point types such as `std::float64_t`, `std::float32_t`, `std::float16_t`, and `std::bfloat16_t`.
2122
22-
You can also parse integer types:
23-
23+
You can also parse integer types such as `char`, `short`, `long`, `long long`, `unsigned char`, `unsigned short`, `unsigned long`, `unsigned long long`, `bool` (0/1), `int8_t`, `int16_t`, `int32_t`, `int64_t`, `uint8_t`, `uint16_t`, `uint32_t`, `uint64_t`.
2424
```C++
2525
from_chars_result from_chars(char const *first, char const *last, int &value, ...);
2626
from_chars_result from_chars(char const *first, char const *last, unsigned &value, ...);

benchmarks/CMakeLists.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1+
include(FetchContent)
2+
3+
FetchContent_Declare(
4+
counters
5+
GIT_REPOSITORY https://github.com/lemire/counters.git
6+
GIT_TAG v2.2.0
7+
)
8+
9+
FetchContent_MakeAvailable(counters)
10+
111
add_executable(realbenchmark benchmark.cpp)
12+
target_link_libraries(realbenchmark PRIVATE counters::counters)
13+
add_executable(bench_ip bench_ip.cpp)
14+
target_link_libraries(bench_ip PRIVATE counters::counters)
15+
216
set_property(
317
TARGET realbenchmark
418
PROPERTY CXX_STANDARD 17)
5-
19+
set_property(
20+
TARGET bench_ip
21+
PROPERTY CXX_STANDARD 17)
622
target_link_libraries(realbenchmark PUBLIC fast_float)
23+
target_link_libraries(bench_ip PUBLIC fast_float)
24+
725
include(ExternalProject)
826

927
# Define the external project

0 commit comments

Comments
 (0)