Re: Repeat efficiency
- Posted by Derek Parnell <ddparnell at bigpond.com> Feb 20, 2003
- 459 views
You're correct. Not very intuitive for me. I had in mind that I was setting a block of memory to a value so I thought in terms of a block (Addr : Length) then the value. It should have been... size = 4 * 768 * 1024 addr = allocate(size) mem_set(addr, 0, size) ---------------- cheers, Derek Parnell ----- Original Message ----- From: "Andy Serpa" <ac at onehorseshy.com> To: "EUforum" <EUforum at topica.com> Sent: Thursday, February 20, 2003 1:57 AM Subject: RE: Repeat efficiency > > > > > e = time() m = 4 * 768 * 1024 > > > z = allocate(m) > > > mem_set(z, m, 0) > > The 2nd & 3rd terms of mem_set look inverted here. > > > > TOPICA - Start your own email discussion group. FREE! >