1 /* Inline functions for rsync.
3 * Copyright (C) 2008-2019 Wayne Davison
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
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, visit the http://fsf.org website.
22 return do_big_num(num
, 0, NULL
);
28 extern int human_readable
;
29 return do_big_num(num
, human_readable
!= 0, NULL
);
35 extern int human_readable
;
36 return do_big_num(num
, human_readable
, NULL
);
40 big_dnum(double dnum
, int decimal_digits
)
42 return do_big_dnum(dnum
, 0, decimal_digits
);
46 comma_dnum(double dnum
, int decimal_digits
)
48 extern int human_readable
;
49 return do_big_dnum(dnum
, human_readable
!= 0, decimal_digits
);
53 human_dnum(double dnum
, int decimal_digits
)
55 extern int human_readable
;
56 return do_big_dnum(dnum
, human_readable
, decimal_digits
);