copy and paste this google map to your website or blog!
Press copy button and paste into your blog or website.
(Please switch to 'HTML' mode when posting into your blog. Examples: WordPress Example, Blogger Example)
How does Duffs device work? - Stack Overflow Duff's device deals with serial copying, rather than just any old problem, but is a classic example of how optimisations can be made by reducing the number of times that a comparison needs to be done in a loop
What does this C code do [Duffs device]? - Stack Overflow Duff's device In computer science, Duff's device is an optimized implementation of a serial copy that uses a technique widely applied in assembly language for loop unwinding
Can I use Duffs Device on an array in C? - Stack Overflow Please, please don't use Duff's device A thousand maintenance programmers will thank you I used to work for a training company where someone thought it funny to introduce the device in the first ten pages of their C programming course As an instructor it was impossible to deal with, unless (as the guy that that wrote that bit of the course apparently did) you believe in "kewl" coding
Why are memcpy() and memmove() faster than pointer increments? Duff's device, or just the initial jump mechanism, is a good use to copy the first 1 3 (or 1 7) bytes so that the pointers are aligned to a nicer boundary where bigger memory move instructions can be used