Mail Archives: djgpp/1998/09/23/11:00:13
From: | D DOT J DOT Eleveld AT anest DOT azg DOT nl
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Is there a memcpy that takes a segment/selector?
|
Date: | Wed, 23 Sep 1998 14:20:47 GMT
|
Organization: | Deja News - The Leader in Internet Discussion
|
Lines: | 24
|
Message-ID: | <6ub03u$gcj$1@nnrp1.dejanews.com>
|
NNTP-Posting-Host: | 192.87.23.66
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello Everyone,
I'm playing with some blitting functions for the AllegTTF library and I've
gotten some code that i (think) can be sped up, but i'm not sure how. The
inner loop for 8 bit blitting function looks like this.
_farsetsel(dest->seg);
... do some start and and end and address calculations ...
while(start<end)
_farnspokeb(address++, *start++);
Since this only moves bytes, I assume that it could be faster if I moved
shorts and words. I though that the built in functions like memcpy copy
words if I can but memcpy doesn't use far pointers like I do here. I looked
through my info files for memcpy and copy but didn't find anything that did
what I want i.e. a memcpy function that copies bytes/shorts/words and I can
give a segment to. Does anyone know a way to do this fast? I'd really like
to avoid assembler if I could..
Doug Eleveld
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
- Raw text -