From d3ed854b870fc2596ce97946e029476c00e4a36e Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 24 Sep 2011 23:00:29 -0400 Subject: [PATCH] Only support single- and double-precision floating point numbers for now Signed-off-by: Mathieu Desnoyers --- include/ust/lttng-events.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/ust/lttng-events.h b/include/ust/lttng-events.h index 005bf0d2..ea7b87e6 100644 --- a/include/ust/lttng-events.h +++ b/include/ust/lttng-events.h @@ -72,11 +72,14 @@ struct lttng_integer_type { enum lttng_string_encodings encoding; }; +/* + * Only float and double are supported. long double is not supported at + * the moment. + */ #define _float_mant_dig(_type) \ (sizeof(_type) == sizeof(float) ? FLT_MANT_DIG \ : (sizeof(_type) == sizeof(double) ? DBL_MANT_DIG \ - : (sizeof(_type) == sizeof(long double) ? LDBL_MANT_DIG \ - : 0))) + : 0)) #define __type_float(_type) \ { \ -- 2.34.1