Skip to content

Commit bfa7bcc

Browse files
committed
lint
1 parent b5ae54c commit bfa7bcc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

benchmarks/bench_ip.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ void pretty_print(size_t volume, size_t bytes, std::string name,
2626
printf("\n");
2727
}
2828

29-
fastfloat_really_inline const char *seek_ip_end(const char *p, const char *pend) {
29+
fastfloat_really_inline const char *seek_ip_end(const char *p,
30+
const char *pend) {
3031
const char *current = p;
3132
size_t count = 0;
3233
for (; current != pend; ++current) {
@@ -48,7 +49,8 @@ fastfloat_really_inline const char *seek_ip_end(const char *p, const char *pend)
4849
return current;
4950
}
5051

51-
fastfloat_really_inline int parse_u8_fastfloat(const char *&p, const char *pend, uint8_t *out) {
52+
fastfloat_really_inline int parse_u8_fastfloat(const char *&p, const char *pend,
53+
uint8_t *out) {
5254
if (p == pend)
5355
return 0;
5456
auto r = fast_float::from_chars(p, pend, *out);
@@ -60,7 +62,7 @@ fastfloat_really_inline int parse_u8_fastfloat(const char *&p, const char *pend,
6062
}
6163

6264
fastfloat_really_inline int parse_u8_fromchars(const char *&p, const char *pend,
63-
uint8_t *out) {
65+
uint8_t *out) {
6466
if (p == pend) {
6567
return 0;
6668
}
@@ -73,8 +75,8 @@ fastfloat_really_inline int parse_u8_fromchars(const char *&p, const char *pend,
7375
}
7476

7577
template <typename Parser>
76-
fastfloat_really_inline std::pair<bool, uint32_t> simple_parse_ip_line(const char *p, const char *pend,
77-
Parser parse_uint8) {
78+
fastfloat_really_inline std::pair<bool, uint32_t>
79+
simple_parse_ip_line(const char *p, const char *pend, Parser parse_uint8) {
7880
uint8_t v1;
7981
if (!parse_uint8(p, pend, &v1)) {
8082
return {false, 0};
@@ -146,12 +148,10 @@ int main() {
146148
volatile uint32_t sink = 0;
147149
std::string buffer(ip_size * N, ' ');
148150

149-
pretty_print(volume, bytes, "memcpy baseline",
150-
counters::bench([&]() {
151-
std::memcpy((char *)buffer.data(), buf.data(), bytes);
151+
pretty_print(volume, bytes, "memcpy baseline", counters::bench([&]() {
152+
std::memcpy((char *)buffer.data(), buf.data(), bytes);
152153
}));
153154

154-
155155
pretty_print(volume, bytes, "just_seek_ip_end (no parse)",
156156
counters::bench([&]() {
157157
const char *p = buf.data();

0 commit comments

Comments
 (0)