[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [tortoisesvn] r21435 committed - Speed up FindScreenLineForViewLine using binary search

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 21 May 2011 19:21:47 +0200

On 21.05.2011 18:10, Oto BREZINA wrote:

>> Please do not use assembler. It's not supported for x64 builds, it's
> ok
>> hard to read and with todays optimizing compilers not necessary.
> I don't know any optimizer to be able use single instruction for
> FindMostSignificatBit. If you know how to write it let me know. There is
> other alternative in code though (20 instruction).
> Will remove ASM way.

If you really must, you can use compiler intrinsics:

If you use SSE2 intrinsics, make sure you have a fallback code path in
case SSE2 is not supported on the processor.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-05-21 19:21:54 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.