Skip to content

Commit

Permalink
Fix clang-format issues
Browse files Browse the repository at this point in the history
Signed-off-by: John Sallay <[email protected]>
  • Loading branch information
jsallay committed Oct 28, 2023
1 parent 5b653fa commit 8bed25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/qa_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ void load_random_data(void* data, volk_type_t type, unsigned int n)
}
} else {
float int_max, int_min;
switch(type.size) {
switch (type.size) {
case 8:
if (type.is_signed) {
int_max = static_cast<float>(std::numeric_limits<int64_t>::max());
Expand Down Expand Up @@ -91,7 +91,7 @@ void load_random_data(void* data, volk_type_t type, unsigned int n)
break;
default:
throw "load_random_data: no support for data size > 8 or < 1"; // no
}
}
std::uniform_real_distribution<float> uniform_dist(int_min, int_max);
for (unsigned int i = 0; i < n; i++) {
float scaled_rand = uniform_dist(rnd_engine);
Expand Down

0 comments on commit 8bed25c

Please sign in to comment.