Mercurial > projects > dstress
comparison run/c/creal_32_C.d @ 1600:6d193e241564
Allow for tango math in creal tests.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 04 Jan 2009 22:25:02 +0100 |
parents | b8c0195059d9 |
children |
comparison
equal
deleted
inserted
replaced
1599:d37b19f7e8bb | 1600:6d193e241564 |
---|---|
3 // $Author$ | 3 // $Author$ |
4 | 4 |
5 // @author@ Don Clugston <dac@nospam.com.au> | 5 // @author@ Don Clugston <dac@nospam.com.au> |
6 // @date@ 2006-03-02 | 6 // @date@ 2006-03-02 |
7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6425 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=6425 |
8 // @WARNING@ direct use of phobos | |
9 | 8 |
10 module dstress.run.c.creal_32_C; | 9 module dstress.run.c.creal_32_C; |
11 | 10 |
11 version(Tango) { | |
12 import tango.math.IEEE; | |
13 } else { | |
12 import std.math; | 14 import std.math; |
15 } | |
13 | 16 |
14 int main(){ | 17 int main(){ |
15 creal a = 0.0L - 0.0Li; | 18 creal a = 0.0L - 0.0Li; |
16 | 19 |
17 if(signbit(a.re)){ | 20 if(signbit(a.re)){ |