~ubuntu-branches/ubuntu/edgy/k3d/edgy-proposed

« back to all changes in this revision

Viewing changes to modules/javascript/js/src/jslibmath.h

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2004-10-06 00:49:35 UTC
  • Revision ID: james.westby@ubuntu.com-20041006004935-54auamz54ve7kwf8
Tags: 0.4.3.0-3
_Really_ apply patch from #274172 (closes: #274172). Sorry. :-(

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2
2
 *
3
 
 * The contents of this file are subject to the Netscape Public
4
 
 * License Version 1.1 (the "License"); you may not use this file
5
 
 * except in compliance with the License. You may obtain a copy of
6
 
 * the License at http://www.mozilla.org/NPL/
7
 
 *
8
 
 * Software distributed under the License is distributed on an "AS
9
 
 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10
 
 * implied. See the License for the specific language governing
11
 
 * rights and limitations under the License.
 
3
 * ***** BEGIN LICENSE BLOCK *****
 
4
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 
5
 *
 
6
 * The contents of this file are subject to the Mozilla Public License Version
 
7
 * 1.1 (the "License"); you may not use this file except in compliance with
 
8
 * the License. You may obtain a copy of the License at
 
9
 * http://www.mozilla.org/MPL/
 
10
 *
 
11
 * Software distributed under the License is distributed on an "AS IS" basis,
 
12
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 
13
 * for the specific language governing rights and limitations under the
 
14
 * License.
12
15
 *
13
16
 * The Original Code is Mozilla Communicator client code, released
14
17
 * March 31, 1998.
15
18
 *
16
 
 * The Initial Developer of the Original Code is Netscape
17
 
 * Communications Corporation.  Portions created by Netscape are
18
 
 * Copyright (C) 1998 Netscape Communications Corporation. All
19
 
 * Rights Reserved.
20
 
 *
21
 
 * Contributor(s): 
22
 
 *
23
 
 * Alternatively, the contents of this file may be used under the
24
 
 * terms of the GNU Public License (the "GPL"), in which case the
25
 
 * provisions of the GPL are applicable instead of those above.
26
 
 * If you wish to allow use of your version of this file only
27
 
 * under the terms of the GPL and not to allow others to use your
28
 
 * version of this file under the NPL, indicate your decision by
29
 
 * deleting the provisions above and replace them with the notice
30
 
 * and other provisions required by the GPL.  If you do not delete
31
 
 * the provisions above, a recipient may use your version of this
32
 
 * file under either the NPL or the GPL.
33
 
 *
34
 
 * This Original Code has been modified by IBM Corporation.
35
 
 * Modifications made by IBM described herein are
36
 
 * Copyright (c) International Business Machines
37
 
 * Corporation, 2000
38
 
 *
39
 
 * Modifications to Mozilla code or documentation
40
 
 * identified per MPL Section 3.3
41
 
 *
42
 
 * Date             Modified by     Description of modification
43
 
 * 04/20/2000       IBM Corp.      OS/2 VisualAge build.
44
 
 */
 
19
 * The Initial Developer of the Original Code is
 
20
 * Netscape Communications Corporation.
 
21
 * Portions created by the Initial Developer are Copyright (C) 1998
 
22
 * the Initial Developer. All Rights Reserved.
 
23
 *
 
24
 * Contributor(s):
 
25
 *   IBM Corp.
 
26
 *
 
27
 * Alternatively, the contents of this file may be used under the terms of
 
28
 * either of the GNU General Public License Version 2 or later (the "GPL"),
 
29
 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 
30
 * in which case the provisions of the GPL or the LGPL are applicable instead
 
31
 * of those above. If you wish to allow use of your version of this file only
 
32
 * under the terms of either the GPL or the LGPL, and not to allow others to
 
33
 * use your version of this file under the terms of the MPL, indicate your
 
34
 * decision by deleting the provisions above and replace them with the notice
 
35
 * and other provisions required by the GPL or the LGPL. If you do not delete
 
36
 * the provisions above, a recipient may use your version of this file under
 
37
 * the terms of any one of the MPL, the GPL or the LGPL.
 
38
 *
 
39
 * ***** END LICENSE BLOCK ***** */
45
40
 
46
41
/*
47
42
 * By default all math calls go to fdlibm.  The defines for each platform
84
79
#elif defined(AIX)
85
80
#define JS_USE_FDLIBM_MATH 1
86
81
 
87
 
#elif defined(XP_OS2_VACPP)
88
 
#define JS_USE_FDLIBM_MATH 1
89
 
 
90
82
#else
91
83
#define JS_USE_FDLIBM_MATH 0
92
84
#endif
268
260
extern double fd_pow __P((double,double));
269
261
extern double fd_tan __P((double));
270
262
 
271
 
#elif defined(XP_OS2_VACPP)
272
 
 
273
 
#define fd_acos acos
274
 
#define fd_asin asin
275
 
#define fd_atan2 atan2
276
 
#define fd_cos cos
277
 
#define fd_exp exp
278
 
#define fd_fabs fabs
279
 
#define fd_floor floor
280
 
#define fd_fmod fmod
281
 
#define fd_log log
282
 
#define fd_sin sin
283
 
#define fd_sqrt sqrt
284
 
#define fd_atan atan
285
 
#define fd_ceil ceil
286
 
#define fd_pow pow
287
 
#define fd_tan tan
288
 
 
289
 
/* OS2 lacks copysign */
290
 
extern double fd_copysign __P((double, double));
291
 
 
292
263
#else /* other platform.. generic paranoid slow fdlibm */
293
264
 
294
265
extern double fd_acos __P((double));