aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-26 01:42:51 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-26 01:42:51 +0000
commitdeea1b2970f69d3fc283eaad1eb615ffc7e1166f (patch)
tree9df80bb6609b38337547c21169e654ed97cee933 /math
parent4f2689f478551b5d6facb9923ab37abbca3055e7 (diff)
downloadglibc-deea1b2970f69d3fc283eaad1eb615ffc7e1166f.tar
glibc-deea1b2970f69d3fc283eaad1eb615ffc7e1166f.tar.gz
glibc-deea1b2970f69d3fc283eaad1eb615ffc7e1166f.tar.bz2
glibc-deea1b2970f69d3fc283eaad1eb615ffc7e1166f.zip
Update.
* math/tgmath.h: Pretty printing.
Diffstat (limited to 'math')
-rw-r--r--math/test-tgmath.c2
-rw-r--r--math/tgmath.h12
2 files changed, 7 insertions, 7 deletions
diff --git a/math/test-tgmath.c b/math/test-tgmath.c
index 0040738244..ad63f71737 100644
--- a/math/test-tgmath.c
+++ b/math/test-tgmath.c
@@ -26,7 +26,7 @@
#include <stdio.h>
#include <tgmath.h>
-#define DEBUG
+//#define DEBUG
static void compile_test (void);
static void compile_testf (void);
diff --git a/math/tgmath.h b/math/tgmath.h
index 1f19b14058..286ea56df0 100644
--- a/math/tgmath.h
+++ b/math/tgmath.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -41,16 +41,16 @@
/* 1 if 'type' is a floating type, 0 if 'type' is an integer type.
Allows for _Bool. Expands to an integer constant expression. */
-#define __floating_type(type) (((type) 0.25) && ((type) 0.25 - 1))
+# define __floating_type(type) (((type) 0.25) && ((type) 0.25 - 1))
/* The tgmath real type for T, where E is 0 if T is an integer type and
1 for a floating type. */
-#define __tgmath_real_type_sub(T, E) \
- __typeof__(*(0 ? (__typeof__(0 ? (double *)0 : (void *)(E)))0 \
- : (__typeof__(0 ? (T *)0 : (void *)(!(E))))0))
+# define __tgmath_real_type_sub(T, E) \
+ __typeof__(*(0 ? (__typeof__ (0 ? (double *) 0 : (void *) (E))) 0 \
+ : (__typeof__ (0 ? (T *) 0 : (void *) (!(E)))) 0))
/* The tgmath real type of EXPR. */
-#define __tgmath_real_type(expr) \
+# define __tgmath_real_type(expr) \
__tgmath_real_type_sub(__typeof__(expr), __floating_type(__typeof__(expr)))