Article View: alt.lang.asm
Article #148Fast 386 code (and min() and max())
From: Toshiyasu Morita
Date: Tue, 05 Jan 1993 15:17
Date: Tue, 05 Jan 1993 15:17
22 lines
724 bytes
724 bytes
My app needs signed 32-bit ints, so I'm probably going to use: mov ecx, eax sub ecx, ebx mov edx, ecx asr edx, 32 and ecx, edx sub eax, edx (min) or add ebx, edx (max) (Hope I got that right....) Alright, next question: What general guidelines are there to follow to write fast 386/486 code? What's fast, what's not? Toshi Morita tm@netcom.com
Technical Details
Message-ID:
<1993Jan5.151702.20426@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!csus.edu!netcom.com!tmShow Full Headers
Complete Article Headers
Newsgroups: alt.lang.asm Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!csus.edu!netcom.com!tm From: tm@netcom.com (Toshiyasu Morita) Subject: Fast 386 code (and min() and max()) Message-ID: <1993Jan5.151702.20426@netcom.com> Organization: Netcom - Online Communication Services (408 241-9760 guest) Date: Tue, 5 Jan 1993 15:17:02 GMT Lines: 23