lib/md5-asm-x86_64.s: fix build with Apple Clang
[rsync.git] / inums.h
blobb421d1a4c647c9003a06a05b589796ccde592767
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.
19 static inline char *
20 big_num(int64 num)
22 return do_big_num(num, 0, NULL);
25 static inline char *
26 comma_num(int64 num)
28 extern int human_readable;
29 return do_big_num(num, human_readable != 0, NULL);
32 static inline char *
33 human_num(int64 num)
35 extern int human_readable;
36 return do_big_num(num, human_readable, NULL);
39 static inline char *
40 big_dnum(double dnum, int decimal_digits)
42 return do_big_dnum(dnum, 0, decimal_digits);
45 static inline char *
46 comma_dnum(double dnum, int decimal_digits)
48 extern int human_readable;
49 return do_big_dnum(dnum, human_readable != 0, decimal_digits);
52 static inline char *
53 human_dnum(double dnum, int decimal_digits)
55 extern int human_readable;
56 return do_big_dnum(dnum, human_readable, decimal_digits);