diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-04 14:51:05 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-10-04 14:51:05 -0400 |
commit | 4dc63966f0872efe768dad61eb9b8785d06b92d1 (patch) | |
tree | e54104d57d6c2da7840979181368151fd0819c96 /libs/pbd/pbd/floating.h | |
parent | 297e80e020da94a56984b20782584bb1dd96ea34 (diff) |
globally remove all trailing whitespace from ardour code base.
Paul Davis was responsible for introducing almost all of this.
Diffstat (limited to 'libs/pbd/pbd/floating.h')
-rw-r--r-- | libs/pbd/pbd/floating.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/pbd/pbd/floating.h b/libs/pbd/pbd/floating.h index c0003a3113..86ab4a68f0 100644 --- a/libs/pbd/pbd/floating.h +++ b/libs/pbd/pbd/floating.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Paul Davis + Copyright (C) 2012 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -42,18 +42,18 @@ union /*LIBPBD_API*/ Float_t bool negative() const { return (i >> 31) != 0; } int32_t raw_mantissa() const { return i & ((1 << 23) - 1); } int32_t raw_exponent() const { return (i >> 23) & 0xFF; } - + int32_t i; float f; }; - + /* Note: ULPS = Units in the Last Place */ static inline bool floateq (float a, float b, int max_ulps_diff) { Float_t ua (a); Float_t ub (b); - + if (a == b) { return true; } @@ -69,7 +69,7 @@ static inline bool floateq (float a, float b, int max_ulps_diff) if (ulps_diff <= max_ulps_diff) { return true; } - + return false; } |