From: Herwin Jan Steehouwer <herwinjs@palet.nl>
To: axp-list@redhat.com
Subject: Re: Performance again
Date: Sun, 3 Jan 1999 15:37:47 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.04.9901031537320.15758-200000@hjs.goth.net> (raw)
In-Reply-To: <3.0.1.32.19990103142339.00f3fa80@pop.bart.nl>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 188 bytes --]
oops, i forgot the source :
HJ
Herwin Jan Steehouwer
herwinjs@palet.nl http://www.caiw.nl/~herwinjs
steehouwer@kde.org KDE developer http://www.kde.org
[-- Attachment #2: Type: TEXT/PLAIN, Size: 730 bytes --]
/* cc perftest.c -o perftest */
int main(argc,argv)
int argc;
char **argv;
{
int a=5000000;
if(argc==2 && argv[1][0]=='f') {
float val1=2.0, val2=1.3, val3=1230.4;
while(a--) {
val1*= (val2*val2 + val3)/(val2);
val1/= (val2*val2 + val3)/(val2);
}
printf("float\n");
}
if(argc==2 && argv[1][0]=='i') {
float val1=2;
int val2=13, val3=1230;
while(a--) {
val1*= (val2*val2 + val3)/(val2);
val1/= (val2*val2 + val3)/(val2);
}
printf("mixed int\n");
}
if(argc==2 && argv[1][0]=='d') {
double val1=2.0, val2=1.3, val3=1230.4;
while(a--) {
val1*= (val2*val2 + val3)/(val2);
val1/= (val2*val2 + val3)/(val2);
}
printf("double\n");
}
}
next prev parent reply other threads:[~1999-01-03 15:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-01-03 8:59 Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Ron
1999-01-03 11:21 ` Performance again Herwin Jan Steehouwer
1999-01-03 13:23 ` geerten kuiper
1999-01-03 14:36 ` Herwin Jan Steehouwer
1999-01-03 20:22 ` Ed Hall
1999-01-04 4:49 ` Joseph Curtis
1999-01-03 14:37 ` Herwin Jan Steehouwer [this message]
1999-01-03 21:45 ` Wes Bauske
1999-01-03 22:06 ` warp
1999-01-03 22:35 ` warp
1999-01-03 13:35 ` Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Kari Davidsson
1999-01-03 17:07 ` (Help) " Ron
1999-01-03 20:32 ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH Matthew Geier
1999-01-03 21:47 ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Wes Bauske
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox