View | Details | Raw Unified | Return to bug 218300 | Differences between
and this patch

Collapse All | Expand All

(-)src/math_private.h (+12 lines)
Lines 300-314 Link Here
300
						\
299
						\
301
	if ((__oprec = fpgetprec()) != FP_PE)	\
300
	if ((__oprec = fpgetprec()) != FP_PE)	\
302
		fpsetprec(FP_PE)
301
		fpsetprec(FP_PE)
302
#define	ENTERV()				\
303
	fp_prec_t __oprec;			\
304
						\
305
	if ((__oprec = fpgetprec()) != FP_PE)	\
306
		fpsetprec(FP_PE)
303
#define	RETURNI(x) do {				\
307
#define	RETURNI(x) do {				\
304
	__retval = (x);				\
308
	__retval = (x);				\
305
	if (__oprec != FP_PE)			\
309
	if (__oprec != FP_PE)			\
306
		fpsetprec(__oprec);		\
310
		fpsetprec(__oprec);		\
307
	RETURNF(__retval);			\
311
	RETURNF(__retval);			\
308
} while (0)
312
} while (0)
313
#define	RETURNV() do {				\
314
	if (__oprec != FP_PE)			\
315
		fpsetprec(__oprec);		\
316
	return;			\
317
} while (0)
309
#else
318
#else
319
#define	ENTERV()
310
#define	ENTERI(x)
320
#define	ENTERI(x)
311
#define	RETURNI(x)	RETURNF(x)
321
#define	RETURNI(x)	RETURNF(x)
322
#define	RETURNV()	return
312
#endif
323
#endif
313
324
314
/* Default return statement if hack*_t() is not used. */
325
/* Default return statement if hack*_t() is not used. */

Return to bug 218300