31
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
|
19 |
* infinity.c
|
|
20 |
*/
|
|
21 |
|
|
22 |
#include <sys/cdefs.h>
|
|
23 |
#ifndef __SYMBIAN32__
|
|
24 |
__FBSDID("$FreeBSD: src/lib/libc/arm/gen/infinity.c,v 1.1 2004/05/14 12:04:30 cognet Exp $");
|
|
25 |
#endif //__SYMBIAN32__
|
|
26 |
|
|
27 |
#include <math.h>
|
|
28 |
#ifndef __SYMBIAN32__
|
|
29 |
|
|
30 |
/* bytes for +Infinity on a 387 */
|
|
31 |
const union __infinity_un __infinity = {
|
|
32 |
#if BYTE_ORDER == BIG_ENDIAN
|
|
33 |
{ 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
|
|
34 |
#else
|
|
35 |
{ 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }
|
|
36 |
#endif
|
|
37 |
};
|
|
38 |
|
|
39 |
/* bytes for NaN */
|
|
40 |
const union __nan_un __nan = {
|
|
41 |
#if BYTE_ORDER == BIG_ENDIAN
|
|
42 |
{0xff, 0xc0, 0, 0}
|
|
43 |
#else
|
|
44 |
{ 0, 0, 0xc0, 0xff }
|
|
45 |
#endif
|
|
46 |
};
|
|
47 |
#endif //__SYMBIAN32__
|