1. RE: Repeat efficiency
- Posted by Andy Serpa <ac at onehorseshy.com> Feb 19, 2003
- 462 views
> > > > e = time() m = 4 * 768 * 1024 > > z = allocate(m) > > mem_set(z, m, 0) The 2nd & 3rd terms of mem_set look inverted here.
2. RE: Repeat efficiency
- Posted by Andy Serpa <ac at onehorseshy.com> Feb 20, 2003
- 418 views
Derek Parnell wrote: > 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) > > I think it was intuitive of you -- I think the required order of terms is counter-inituitive. The only reason I noticed is because I always screw that one up. Just seems more natural the other way...