[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Sequences in a loop
From:       Michael Stefaniuc <mstefani () redhat ! com>
Date:       2013-08-30 12:47:37
Message-ID: 52209469.3060603 () redhat ! com
[Download RAW message or body]

On 08/30/2013 02:33 PM, matyapiro31 wrote:
> I found many wine sources use not a pointer,but a sequence .
> for example:
> krnl386.exe16/dma.c:
> for(i=0,p=(char*)DMA_CurrentBaseAddress[channel];i<ret*size;i++)
> msdaps/usrmarshal.c: for(prop = 0; prop <
> rgPropertySets[prop_set].cProperties; prop++)
> I know in some cases to use sequences are wiser way than pointers,
> but so many of them are used in loops.
> Should I change them?
Optimizations should be primary for the human reader of the code.
Compilers nowadays do a far better job at micro-optimization than
humans.

bye
	michael


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic