Date: Tue, 4 Mar 1997 17:04:09 +0200 (IST) From: Eli Zaretskii To: nikki cc: djgpp AT delorie DOT com Subject: Re: Allegro perspective-correct .. (fpu memcopy) In-Reply-To: <5fh859$nn7@flex.uunet.pipex.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 4 Mar 1997, nikki wrote: > > 2) Cause your program to ignore FP exceptions by including the > > following somewhere at its beginning: > > > > #include > > ... > > signal (SIGFPE, SIG_IGN); > > i wasn't aware you could do this actually. does this perhaps mean that you > could use a memcopy with fld and fstp and just ignore errors like this? it > would be much faster than the fild fistp version obviously... Can do: probably (should try to be sure); faster: not necessarily, because an exception, even if it's ignored by the DJGPP signal-handling mechanism, has a lot of overhead. It would be interesting to see if this will indeed work, and if so, how fast/slow will it be compared to the classic memcpy. And if you try this, it's worth also to try the method with masking exceptions using `_control87', since that prevents the exception from happening.