| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Rotate |
MB> property, if you want to loop through the circle, using MB> foo=(foo+1)%360, you will do it faster using foo=(foo+1)&255, in which MB> &255 is an optimization of %256. If you let the compiler do the following optimization: MB> y*256+y*64 and then optimized to (y<<8)+(y<<6). TC++ only does the Then also let it do the optimization from %256 to &255. Most current compilers do it, and it's readable. :-) --- ---------------* Origin: Tanktalus' Tower BBS (1:250/102) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.