News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Maybe I'm missing the obvious but...

Started by oex, November 15, 2009, 01:12:34 PM

Previous topic - Next topic

hutch--

oex,

Thanks for finding this one, it is a fault in to library algo. Attached is a replacement that has exhaustive proof of byte range 0 to 255. I would be inclined to have a look at the thread JJ started in the Lab as it has a number of faster algorithms. I would make sure they handle the byte range exhaustively but you will get faster results using one of them if they test up reliable.

Dave,
Quote
looking at the code - that thing seems a little silly to me - lol
but, the -1 is returned as an error

I imagine it would if you are not familiar with constructing finite state machines. When I put this algo together some years back there was nothing as fast as it but its basically a technique for word testing rather that two character numeric representation as in a binary string.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

oex

We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

dedndave

lol - sorry, Hutch - didn't know you were the author
ya hafta stick your name in there so we know who wrote it

hutch--

Thats easy, if it hasn't got a name on it, I wrote it.  :P
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

oex

Is there a speed difference in jmp @F vs jmp Label?
We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv

dedndave

no - it just tells masm to use the next "anonymous label" instead of a specific one

oex

We are all of us insane, just to varying degrees and intelligently balanced through networking

http://www.hereford.tv