LCOV - code coverage report
Current view: top level - ecm - b1_ainc.c (source / functions) Hit Total Coverage
Test: unnamed Lines: 2 2 100.0 %
Date: 2022-03-21 11:19:20 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /* Code to compute "Automatic calculated" B1 incrementation
       2             : 
       3             : Copyright 2003, 2005, 2006, 2015 Jim Fougeron, Paul Zimmermann.
       4             : 
       5             : This program is free software; you can redistribute it and/or modify
       6             : it under the terms of the GNU General Public License as published by
       7             : the Free Software Foundation; either version 3 of the License, or (at your
       8             : option) any later version.
       9             : 
      10             : This program is distributed in the hope that it will be useful, but
      11             : WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
      12             : or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
      13             : more details.
      14             : 
      15             : You should have received a copy of the GNU General Public License
      16             : along with this program; see the file COPYING.  If not, see
      17             : http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
      18             : 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
      19             : 
      20             : #include "ecm-ecm.h"
      21             : #include <math.h>
      22             : 
      23             : /* return a new value of B1: cur_B1 + incB1val * sqrt(cur_B1) */
      24             : double
      25          76 : calc_B1_AutoIncrement (double cur_B1, double incB1val)
      26             : {
      27          76 :   return cur_B1 + incB1val * sqrt (cur_B1);
      28             : }

Generated by: LCOV version 1.14