~ubuntu-branches/ubuntu/vivid/gzip/vivid

« back to all changes in this revision

Viewing changes to lib/printf-frexpl.c

  • Committer: Steve Langasek
  • Date: 2012-06-29 02:07:40 UTC
  • mfrom: (4.1.9 sid)
  • Revision ID: steve.langasek@canonical.com-20120629020740-qqikrblzana08v2y
Merge version 1.5-1.1 from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Split a 'long double' into fraction and mantissa, for hexadecimal printf.
2
 
   Copyright (C) 2007, 2009, 2010 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
14
14
   You should have received a copy of the GNU General Public License
15
15
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
16
16
 
17
 
#define USE_LONG_DOUBLE
18
 
#include "printf-frexp.c"
 
17
#include <config.h>
 
18
 
 
19
#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
 
20
 
 
21
/* Specification.  */
 
22
# include "printf-frexpl.h"
 
23
 
 
24
# include "printf-frexp.h"
 
25
 
 
26
long double
 
27
printf_frexpl (long double x, int *expptr)
 
28
{
 
29
  return printf_frexp (x, expptr);
 
30
}
 
31
 
 
32
#else
 
33
 
 
34
# define USE_LONG_DOUBLE
 
35
# include "printf-frexp.c"
 
36
 
 
37
#endif