22.02.2014 6:32, Dmitry Yemanov wrote: > The problem here may be theoretical rather than practical, but it does > exist. Memcmp is not guaranteed to return 1 / -1, it's only guaranteed > to return positive / negative. If one day it will start returning > 1000000 for "greater-than", we're in trouble.
It is practical. If someone implement this procedure as sub-jz opcodes, it will return whatever. I had already encountered such implementation for strcmp(). -- WBR, SD. ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel
