Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/07/03 06:10
Read: times


 
#44962 - RE: multivariables comparison - Sampah
Responding to: ???'s previous message
The way it was proceeding, I knew that much more is yet to come!

Anyway I can think of one method as below.

-Initialize 32 Flags ( FLG_01 to FLG_32 to zero.

-Have 32 comparisons like the one I had given earlier to cover all cases. At the end of First comparison Set FLG_01 if Var_02 is greater than Var_01 else leave it cleared.

-Carry out the above for all 32 cases.

-At the end of it all, you will have a 4 Byte value that is made up of all the flags.

-Use a look up table and transfer the required result to your SAME variable.

I am sure once this first level algorithm is put in place, you yourself can come up with ideas to optimize the code further.

Raghu


List of 24 messages in thread
TopicAuthorDate
multivariables comparison            01/01/70 00:00      
   RE: little problem            01/01/70 00:00      
      RE: little problem            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
         RE: multivariables comparison            01/01/70 00:00      
            RE: multivariables comparison            01/01/70 00:00      
               RE: multivariables comparison            01/01/70 00:00      
            RE: multivariables comparison            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison - Sampah            01/01/70 00:00      
         RE: multivariables comparison - Lee            01/01/70 00:00      
            RE: multivariables comparison - Lee            01/01/70 00:00      
               RE: multivariables comparison - Sampah            01/01/70 00:00      
         RE: multivariables comparison - Sampah            01/01/70 00:00      
      what does SAME mean?            01/01/70 00:00      
         RE: what does SAME mean?            01/01/70 00:00      
            RE: what does SAME mean?            01/01/70 00:00      
               RE: what does SAME mean?            01/01/70 00:00      
               RE: what does SAME mean?            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
   RE: multivariables comparison            01/01/70 00:00      
      RE: multivariables comparison            01/01/70 00:00      
   RE: Clear CF before SUBB            01/01/70 00:00      

Back to Subject List