delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/15/12:03:58

From: Leath Muller <leathm AT gbrmpa DOT gov DOT au>
Message-Id: <199607120520.PAA04734@gbrmpa.gov.au>
Subject: Re: Setpixel in AT&T inline asm....
To: korpela AT islay DOT ssl DOT berkeley DOT edu (Eric J. Korpela)
Date: Fri, 12 Jul 1996 15:20:33 +1000 (EST)
Cc: djgpp AT delorie DOT com
In-Reply-To: <4s3ikt$ano@agate.berkeley.edu> from "Eric J. Korpela" at Jul 11, 96 06:54:21 pm

> how about....
>   lookup_table[y][x]=c;
> where lookup_table is initialized at startup to...
> char **lookup_table
> for (i=0;i<200;i++) {
>   lookup_table[i]=virscr+i*320;
> }
> It's bound to be faster than an imull.

I thought most muls on the pentium only took a cycle...so it would probably
depend on the cpu he is coding for...

Leathal.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019