home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / sysv386 / 14527 < prev    next >
Encoding:
Internet Message Format  |  1992-09-15  |  801 b 

  1. Path: sparky!uunet!stanford.edu!bcm!tamsun.tamu.edu!zeus.tamu.edu!jle9162
  2. From: jle9162@zeus.tamu.edu (ECKHARDT, JASON LEE)
  3. Newsgroups: comp.unix.sysv386
  4. Subject: optimization
  5. Message-ID: <15SEP199221024888@zeus.tamu.edu>
  6. Date: 16 Sep 1992 02:02:00 GMT
  7. Sender: news@tamsun.tamu.edu (Read News)
  8. Distribution: usa
  9. Organization: Texas A&M University, Academic Computing Services
  10. Lines: 13
  11. News-Software: VAX/VMS VNEWS 1.41
  12.  
  13.  
  14.   I am writing some code that needs to be extremely fast in x86 assembly.
  15. A bottleneck I'm running into is this:
  16. (cx=num1, dx=num2)
  17.    mov ax,640
  18.    mul dx
  19.    add ax,cx
  20. This sequence simply takes too long. Can anybody think of a faster way
  21. of doing this address calculation? Possibly shifting is the answer?
  22.  
  23. Thanks for your help.
  24. Jason.
  25. reply by email to jle9162@venus.tamu.edu
  26.