summaryrefslogtreecommitdiff
path: root/tests/eyal1.c
diff options
context:
space:
mode:
authorrpj <rpj>1999-10-30 09:17:28 +0000
committerrpj <rpj>1999-10-30 09:17:28 +0000
commit588b7f6616834651ea4062cf440e57a8a0cba25f (patch)
tree52851833a18a06ffadcca2e1c9dac08e9ec30d9a /tests/eyal1.c
parent9d592dbd51949858e2e787d16476420f10d2c9a5 (diff)
./ChangeLog:
1999-10-30 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * create.c (pthread_create): Explicitly initialise thread state to default values. * cancel.c (pthread_setcancelstate): Check for NULL 'oldstate' for compatibility with Solaris pthreads; (pthread_setcanceltype): ditto: - Erik Hensema <erik.hensema@group2000.nl> 1999-10-23 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * pthread.h (ctime_r): Fix incorrect argument "_tm" - Erik Hensema <erik.hensema@group2000.nl> tests/ChangeLog: 1999-10-30 Ross Johnson <rpj@ixobrychus.canberra.edu.au> * cancel1.c: New. Test pthread_setcancelstate and pthread_setcanceltype functions. * eyal1.c (waste_time): Change calculation to avoid FP exception on Aplhas - Rich Peters <rpeters@micro-magic.com>
Diffstat (limited to 'tests/eyal1.c')
-rw-r--r--tests/eyal1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/eyal1.c b/tests/eyal1.c
index 533822d..7a2dc37 100644
--- a/tests/eyal1.c
+++ b/tests/eyal1.c
@@ -96,7 +96,7 @@ waste_time (int n)
for (i = n*100; i > 0; --i)
{
- f = sqrt (f) * f + 10000.0;
+ f = 2 * f * f / (f * f);
}
}