Re: VC8.0 and CMOV
"Andrew Finkenstadt" <[email protected]> Fri, 23 Nov 2007 09:13:21 -0600
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
Does using "__asm" help? You could hand-code the instructions, then. confer: <http://msdn2.microsoft.com/EN-US/library/45yd4tzz(VS.80).aspx>, which is the VC8.0 specific page about using __asm anywhere a statement could appear. It could be that the scheduler doesn't know that you are guaranteeing that the program will be run on a Pentium Pro or better, system. (Pentium Pro is when that instruction was added.) Of course, now that I go to look for a reference to this on the microsoft web site, this may not be a concern. I'm showing my age. :) --andy On Nov 23, 2007 4:45 AM, Alen Ladavac <[email protected]> wrote: > Hi all, > > Is there any way to make MSVC8.0 to generate CMOV instructions? I have > some performance-critical loops, with a lot of small ifs, where it > generates branches, and I'd like it to put cmov/fcmov there instead. > Allegedly, it is able to do so, but /O2 doesn't seem to help. I can't > even find any intrinsic to do that. Any ideas appreciated. > > Thanks, > Alen > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Gamedevlists-windows mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=555 > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Gamedevlists-windows mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555