/[svn]/linuxsampler/trunk/src/common/RTMath.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/RTMath.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3574 by schoenebeck, Sat May 20 12:28:57 2017 UTC revision 3575 by schoenebeck, Wed Aug 28 11:12:04 2019 UTC
# Line 3  Line 3 
3   *   LinuxSampler - modular, streaming capable sampler                     *   *   LinuxSampler - modular, streaming capable sampler                     *
4   *                                                                         *   *                                                                         *
5   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *   *   Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck   *
6   *   Copyright (C) 2005 - 2017 Christian Schoenebeck                       *   *   Copyright (C) 2005 - 2019 Christian Schoenebeck                       *
7   *                                                                         *   *                                                                         *
8   *   This program is free software; you can redistribute it and/or modify  *   *   This program is free software; you can redistribute it and/or modify  *
9   *   it under the terms of the GNU General Public License as published by  *   *   it under the terms of the GNU General Public License as published by  *
# Line 180  class RTMathBase { Line 180  class RTMathBase {
180           */           */
181          static usecs_t unsafeMicroSeconds(clock_source_t source);          static usecs_t unsafeMicroSeconds(clock_source_t source);
182    
183            /**
184             * 'Equalness' comparison between two 32 bit floating point numbers
185             * (that is of single precision data type).
186             *
187             *  This methods deals with the expected tolerance of the floating point
188             *  representation.
189             *
190             * @return true if the two numbers can be expected to be equal
191             */
192            static bool fEqual32(float a, float b);
193    
194            /**
195             * 'Equalness' comparison between two 64 bit floating point numbers
196             * (that is of double precision data type).
197             *
198             *  This methods deals with the expected tolerance of the floating point
199             *  representation.
200             *
201             * @return true if the two numbers can be expected to be equal
202             */
203            static bool fEqual64(double a, double b);
204    
205      private:      private:
206          static float* pCentsToFreqTable;          static float* pCentsToFreqTable;
207    

Legend:
Removed from v.3574  
changed lines
  Added in v.3575

  ViewVC Help
Powered by ViewVC