Mail Archives: djgpp/1996/05/21/01:07:41
On 20 May 1996, Austin Appleby wrote:
> it'll be even speedier... Basically, the idea is to set videoptr to a
> long pointer instead of a char pointer, so that the thing will optimize
> down to some resemblance of a movsd op instead of a movsb, thus a 4x
> improvement. But for the life of me I don't know how to get the thing to
> work...
`dosmemputl' (and `movedata') already use 32-bit movsd, so I don't see
how you can get any real speed-up here. The only situation where nearptr
is faster is when you operate on single pixels or small groups of
pixels. If you need to move large buffers, `movedata' is as fast as
nearptr, but much more safe (as it doesn't disable memory protection),
and also works on any DPMI platform.
- Raw text -