Skip to content

Commit

Permalink
applied code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Suchandra authored and Suchandra committed Jul 10, 2020
1 parent 244d883 commit 3de577a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ namespace {
constexpr double m_proton = 938.272;
float calcQ(float x);
} // namespace
namespace {
namespace {
float calcQ(float x) {
constexpr float p1 = 12.5f;
constexpr float p2 = 0.2733f;
constexpr float p3 = 0.147f;
constexpr float p2 = 0.2733f;
constexpr float p3 = 0.147f;

auto xx = std::min(0.5f * x * x, p1);
return 0.5f * (1.f - std::copysign(std::sqrt(1.f - unsafe_expf<4>(-xx * (1.f + p2 / (1.f + p3 * xx)))), x));
Expand Down

0 comments on commit 3de577a

Please sign in to comment.