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. Its discovery is credited to Tom Duff in November 1983, who at the time was working for Lucasfilm. It is perhaps the most dramatic use of case label fall-through in the C programming language to date. Duff does not claim credit for discovering the concept of loop unrolling, just this particular expression of it in C.

Read more about Duff's Device:  Background, Original Version, Why It Works, Performance, Stroustrup's Version, Books

Famous quotes containing the words duff and/or device:

    ‘Why do you wear your hair like a man,
    —Henry Duff Traill (1842–1900)

    UG [universal grammar] may be regarded as a characterization of the genetically determined language faculty. One may think of this faculty as a ‘language acquisition device,’ an innate component of the human mind that yields a particular language through interaction with present experience, a device that converts experience into a system of knowledge attained: knowledge of one or another language.
    Noam Chomsky (b. 1928)