~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to gnulib-tests/test-isnanl.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- buffer-read-only: t -*- vi: set ro: */
2
 
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3
1
/* Test of isnanl() substitute.
4
 
   Copyright (C) 2007-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007-2012 Free Software Foundation, Inc.
5
3
 
6
4
   This program is free software: you can redistribute it and/or modify
7
5
   it under the terms of the GNU General Public License as published by
22
20
#include <limits.h>
23
21
 
24
22
#include "minus-zero.h"
 
23
#include "infinity.h"
25
24
#include "nan.h"
26
25
#include "macros.h"
27
26
 
43
42
  ASSERT (!isnanl (0.0L));
44
43
  ASSERT (!isnanl (minus_zerol));
45
44
  /* Infinite values.  */
46
 
  ASSERT (!isnanl (1.0L / 0.0L));
47
 
  ASSERT (!isnanl (-1.0L / 0.0L));
 
45
  ASSERT (!isnanl (Infinityl ()));
 
46
  ASSERT (!isnanl (- Infinityl ()));
48
47
  /* Quiet NaN.  */
49
48
  ASSERT (isnanl (NaNl ()));
50
49
 
66
65
  }
67
66
#endif
68
67
 
69
 
#if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_))
 
68
#if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
70
69
/* Representation of an 80-bit 'long double' as an initializer for a sequence
71
70
   of 'unsigned int' words.  */
72
71
# ifdef WORDS_BIGENDIAN