Skip to content

Commit 50fa3ad

Browse files
committed
* code cleanup.
1 parent 80902aa commit 50fa3ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

benchmarks/event_counter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct event_collector {
130130
LinuxEvents<PERF_TYPE_HARDWARE> linux_events;
131131

132132
event_collector()
133-
: linux_events(std::array<unsigned long long, 4>{
133+
: linux_events(std::array<unsigned long long, 4 /*event_counter_types_size*/>{
134134
PERF_COUNT_HW_CPU_CYCLES, PERF_COUNT_HW_INSTRUCTIONS,
135135
PERF_COUNT_HW_BRANCH_INSTRUCTIONS, // Retired branch instructions
136136
PERF_COUNT_HW_BRANCH_MISSES}) {}

tests/basictest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ template <typename T> std::string fHexAndDec(T v) {
6969
return ss.str();
7070
}
7171

72-
const std::string round_name(int const d) {
72+
const std::string_view round_name(int const d) {
7373
switch (d) {
7474
case FE_UPWARD:
7575
return "FE_UPWARD";
@@ -107,9 +107,9 @@ TEST_CASE("system_info") {
107107
#endif
108108
#ifdef FASTFLOAT_IS_BIG_ENDIAN
109109
#if FASTFLOAT_IS_BIG_ENDIAN
110-
printf("big endian\n");
110+
std::cout << "big endian" << std::endl;
111111
#else
112-
printf("little endian\n");
112+
std::cout << "little endian" << std::endl;
113113
#endif
114114
#endif
115115
#ifdef FASTFLOAT_32BIT

0 commit comments

Comments
 (0)