/[escript]/branches/intelc_win32/escript/src/UnaryFuncs.h
ViewVC logotype

Contents of /branches/intelc_win32/escript/src/UnaryFuncs.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 742 - (show annotations)
Sat Jun 24 11:27:16 2006 UTC (13 years, 1 month ago) by woo409
File MIME type: text/plain
File size: 907 byte(s)
+ Initial commit of win32 port using intel c++ compiler 9.1.x for Windows
+ This version is failing some file handling tests in python
1 // $Id$
2 /*
3 ************************************************************
4 * Copyright 2006 by ACcESS MNRF *
5 * *
6 * http://www.access.edu.au *
7 * Primary Business: Queensland, Australia *
8 * Licensed under the Open Software License version 3.0 *
9 * http://www.opensource.org/licenses/osl-3.0.php *
10 * *
11 ************************************************************
12 */
13
14 #if !defined escript_UnaryFuncs_20041124_H
15 #define escript_UnaryFuncs_20041124_H
16 #include "system_dep.h"
17
18 namespace escript {
19
20 inline
21 double
22 fsign(double x)
23 {
24 if (x == 0) {
25 return 0;
26 } else {
27 return x/fabs(x);
28 }
29 }
30
31 } // end of namespace
32 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26