From: Bart Veer <bartv@ecoscentric.com>
To: ecos-patches@sourceware.org
Subject: fix framebuffer block move support
Date: Sun, 09 Nov 2008 11:44:00 -0000 [thread overview]
Message-ID: <pnhc6hjf9n.fsf@delenn.bartv.net> (raw)
As per a bug reported on ecos-discuss:
2008-11-09 Bart Veer <bartv@ecoscentric.com>
* src/linear.c: fix the block move operations (new_y > y) overlap
handling.
Index: src/linear.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/framebuf/current/src/linear.c,v
retrieving revision 1.1
diff -u -p -r1.1 linear.c
--- src/linear.c 7 Oct 2008 10:15:04 -0000 1.1
+++ src/linear.c 9 Nov 2008 11:42:01 -0000
@@ -515,9 +515,9 @@ cyg_fb_linear_move_block_8_impl(void* fb
dest += (height * stride);
for ( ; height; height--) {
- __builtin_memcpy(dest, source, width);
source -= stride;
dest -= stride;
+ __builtin_memcpy(dest, source, width);
}
return;
}
@@ -640,9 +640,9 @@ cyg_fb_linear_move_block_16_impl(void* f
dest = (cyg_uint16*)(((cyg_uint8*)dest) + (height * stride8));
width <<= 1;
for ( ; height; height--) {
- __builtin_memcpy(dest, source, width);
source = (cyg_uint16*)(((cyg_uint8*)source) - stride8);
dest = (cyg_uint16*)(((cyg_uint8*)dest) - stride8);
+ __builtin_memcpy(dest, source, width);
}
return;
}
@@ -765,9 +765,9 @@ cyg_fb_linear_move_block_32_impl(void* f
dest = (cyg_uint32*)(((cyg_uint8*)dest) + (height * stride8));
width <<= 2;
for ( ; height; height--) {
- __builtin_memcpy(dest, source, width);
source = (cyg_uint32*)(((cyg_uint8*)source) - stride8);
dest = (cyg_uint32*)(((cyg_uint8*)dest) - stride8);
+ __builtin_memcpy(dest, source, width);
}
return;
}
reply other threads:[~2008-11-09 11:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pnhc6hjf9n.fsf@delenn.bartv.net \
--to=bartv@ecoscentric.com \
--cc=ecos-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).