|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlegacy.Accelerators
public class Accelerators
Accelerators.class conatins various methods for generation accelerated method, funcion and class code
| Constructor Summary | |
|---|---|
Accelerators()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
optimizeScanlineShift(int scanline,
java.lang.String param)
optimizeScanlineShift converts a simple expresion such as pix[x+(y*width] = color to and equivical code segment using shift operators instread of multiplication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Accelerators()
| Method Detail |
|---|
public static final java.lang.String optimizeScanlineShift(int scanline,
java.lang.String param)
y*320 equates to ((y<<8)+(y<<6))
scanline - width of a scanline or graphical objectparam - paramiter to be shifted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||