Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!srcsip!coltrane!carpent From: carpent@coltrane.SRC.Honeywell.COM (Todd Carpenter) Newsgroups: comp.sys.amiga Subject: Re: C help Message-ID: <20008@srcsip.UUCP> Date: 5 Apr 89 12:54:21 GMT Sender: news@src.honeywell.COM Lines: 17 In-reply-to: ewhac@well.UUCP's message of 5 Apr 89 09:05:50 GMT A short time back I asked for help on doing a fast array copy. The jury agrees that the best way to do it is (some approximation to): CopyMem (new_state, state, (LONG) NUM_STATES * sizeof (ushort)); Some people wondered *why* I wanted to do this. Seemed it was a messy way to do it. I could keep track of the modifications, and undo all changes later. Well, I've tried both ways. It is a stochastic modification of the current state, and a non determinitic number of values will be changed. So there is a break even point somewhere. And yes, roughly a zillion and a half people told me that integer expressions are done in integer arithmetic. See what happens when you never actually bought K&R but just borrowed it from people? Thanks for all your help!