|
From: Tom H. <th...@cy...> - 2004-09-02 11:40:44
|
In message <200...@ac...>
Julian Seward <js...@ac...> wrote:
> On x86 (if we don't use seg regs) we can do
> 'cmp %limit, %addr ; cmovge %limit, %addr'
>
> which isn't great, but it isn't a disaster either, and it sounds relatively
> portable.
Bear in mind that CMOV is only available on the Pentium-Pro and
later processors. It isn't available on 486's, original Pentiums,
AMD K6's and so on. I'm not sure about the original MMX Pentiums
as I can't find one here to try it on at the moment.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|