Path: utzoo!attcan!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!ucsd!nosc!crash!jcs From: jcs@crash.cts.com (John Schultz) Newsgroups: comp.graphics Subject: Fastest 2D line clipper Summary: FC clipper in Assembly Message-ID: <2130@crash.cts.com> Date: 7 Apr 90 18:21:55 GMT Reply-To: jcs@crash.cts.com (John Schultz) Organization: Crash TimeSharing, El Cajon, CA Lines: 18 I've written the Fast-Clipper (FC) line clipper in 68000 assembly. It's generic enough to be assembled on any 680x0 machine, and is callable from HLLs which can pass arguments in registers (simple mods to use stack args). The C version of this algorithm was shown to be twice as fast as the Cohen-Sutherland (CS) algorithm. A modified line demo for the Amiga has been written to use the clipper for testing/benchmarking. If anyone is interested in testing the algorithm, let me know and I'll send you a copy. Clip.a is 11739 bytes and cliptest.c is 3613 bytes. If there is enough interest and these files are not too large, I'll post, else mail direct to those inquiring. John