summaryrefslogtreecommitdiffstats
path: root/util/generic/ymath.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/generic/ymath.cpp
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic/ymath.cpp')
-rw-r--r--util/generic/ymath.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/generic/ymath.cpp b/util/generic/ymath.cpp
index 3355f8fc738..31270728f46 100644
--- a/util/generic/ymath.cpp
+++ b/util/generic/ymath.cpp
@@ -36,9 +36,9 @@ double LogGammaImpl(double x) {
static constexpr double coeff3 = -1.0 / 360.0;
static constexpr double coeff1 = 1.0 / 12.0;
- if ((x == 1.0) || (x == 2.0)) {
+ if ((x == 1.0) || (x == 2.0)) {
return 0.0; // 0! = 1
- }
+ }
double bonus = 0.0;
while (x < 3.0) {
bonus -= log(x);