Skip tail call tests on Thumb-1 targets
[official-gcc.git] / libquadmath / math / ldexpq.c
blobc18968b03bc3e740465104ced48be83e94340df0
1 /* ldexpq.c -- __float128 version of s_ldexp.c.
2 * Conversion to long double by Ulrich Drepper,
3 * Cygnus Support, drepper@cygnus.com.
4 */
6 /*
7 * ====================================================
8 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
10 * Developed at SunPro, a Sun Microsystems, Inc. business.
11 * Permission to use, copy, modify, and distribute this
12 * software is freely granted, provided that this notice
13 * is preserved.
14 * ====================================================
17 #include <errno.h>
18 #include "quadmath-imp.h"
20 __float128
21 ldexpq (__float128 value, int exp)
23 if(!finiteq(value)||value==0.0Q) return value;
24 value = scalbnq(value,exp);
25 if(!finiteq(value)||value==0.0Q) errno = ERANGE;
26 return value;