🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.programming.contests
Article #6

Re: Random Numbers

#6
From: Benjamin Carter
Date: Fri, 03 Nov 1995 05:58
20 lines
1113 bytes
Olly Betts (olly@mantis.co.uk) wrote:
: In article <DHD1w9.JC4@rivm.nl>, A. van Kessel <imaavk> wrote:
: >int iter_cmp(ITER *l, ITER *r)
: >{ if (l->val == r->val) return 0;
: >else return l->val - r->val; /* or the other way around */
: >}

: Spot the optimisation.  GCC 2.6.3 on a SPARC doesn't.

{
return l->val - r->val;
}

: Olly
: -- 
: cool wet grass  cool wet grass  cool wet grass  cool wet grass  cool wet grass

--
-Ben	<bcarter@umr.edu>
.sig space for rent, reasonable rates...
Technical Details
Message-ID: <47cb1m$iqg@hptemp1.cc.umr.edu>
Path: arc1-ca.pugleaf.net!hptemp1.cc.umr.edu!bcarter
References: <46qte7$hbv@btmpjg.god.bel.alcatel.be> <4745p3$62h@umbc9.umbc.edu> <chrisw.282.0017FC83@leland.stanford.edu> <DHD1w9.JC4@rivm.nl> <19951102142859.olly@mantis.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!hptemp1.cc.umr.edu!bcarter
From: bcarter@rocket.cc.umr.edu (Benjamin Carter)
Newsgroups: comp.programming.contests,comp.lang.c
Subject: Re: Random Numbers
Followup-To: comp.programming.contests,comp.lang.c
Date: 3 Nov 1995 05:58:14 GMT
Organization: UMR Missouri's Technological University
Message-ID: <47cb1m$iqg@hptemp1.cc.umr.edu>
References: <46qte7$hbv@btmpjg.god.bel.alcatel.be> <4745p3$62h@umbc9.umbc.edu> <chrisw.282.0017FC83@leland.stanford.edu> <DHD1w9.JC4@rivm.nl> <19951102142859.olly@mantis.co.uk>
NNTP-Posting-Host: rocket.cc.umr.edu
X-Newsreader: TIN [version 1.2 PL2]