diff options
author | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:01:21 +0900 |
---|---|---|
committer | Sehong Na <sehong.na@samsung.com> | 2014-05-31 13:01:21 +0900 |
commit | efcfd8bb8b594f96b92c8535629fcc82316d1764 (patch) | |
tree | f9367dce846e6e5fe80ced73c26b9c94e28be071 /src/arith.h | |
download | tar-efcfd8bb8b594f96b92c8535629fcc82316d1764.tar.gz tar-efcfd8bb8b594f96b92c8535629fcc82316d1764.tar.bz2 tar-efcfd8bb8b594f96b92c8535629fcc82316d1764.zip |
Initialize Tizen 2.3submit/tizen_2.3/20140531.1125562.3a_release
Diffstat (limited to 'src/arith.h')
-rw-r--r-- | src/arith.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/arith.h b/src/arith.h new file mode 100644 index 0000000..2bc5ced --- /dev/null +++ b/src/arith.h @@ -0,0 +1,27 @@ +/* Long integers, for GNU tar. + Copyright 1999 Free Software Foundation, Inc. + + 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 + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Handle large integers for calculating big tape lengths and the + like. In practice, double precision does for now. On the vast + majority of machines, it counts up to 2**52 bytes without any loss + of information, and counts up to 2**62 bytes if data are always + blocked in 1 kB boundaries. We'll need arbitrary precision + arithmetic anyway once we get into the 2**64 range, so there's no + point doing anything fancy before then. */ + +#define TARLONG_FORMAT "%.0f" +typedef double tarlong; |