Updated to fedora-glibc-20050106T1443
[glibc.git] / sysdeps / ia64 / fpu / s_frexp.c
blobc67500695fa4655c6abdb694ee77ba35cc46210b
1 /* file: frexp.c */
4 // Copyright (c) 2000-2002, Intel Corporation
5 // All rights reserved.
6 //
7 // Contributed 2/2/2000 by John Harrison, Ted Kubaska, Bob Norin, Shane Story,
8 // and Ping Tak Peter Tang of the Computational Software Lab, Intel Corporation.
9 //
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are
12 // met:
14 // * Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer.
17 // * Redistributions in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer in the
19 // documentation and/or other materials provided with the distribution.
21 // * The name of Intel Corporation may not be used to endorse or promote
22 // products derived from this software without specific prior written
23 // permission.
26 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS
30 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
34 // OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING
35 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 // Intel Corporation is the author of this code, and requests that all
39 // problem reports or change requests be submitted to it directly at
40 // http://www.intel.com/software/products/opensource/libraries/num.htm.
43 // History
44 //=====================================================================
45 // 2/02/00 Initial version
46 // 1/23/02 Calls kernel with parameter to specify 32- or 64-bit int
48 //=====================================================================
50 #include "libm_support.h"
52 double __libm_frexp(double, int*, int);
54 double frexp(double x, int *y)
57 #ifdef SIZE_INT_64
58 return( __libm_frexp(x, y, 1) );
60 #else
62 #ifdef SIZE_INT_32
63 return( __libm_frexp(x, y, 0) );
64 #endif
66 #endif