|
项目描述: |
My PPC device runs for a fairly long time on a watch battery and a pair of AAAs.   I wasn't too surprised, then, when I found part of the reason for this long battery life is that my palmtop has a limited register set and it doesn't have chip support for much floating-point math. Try as I might, I simply couldn't rearrange program logic in a way that would get rid of unresolved externals that had to do with floating point number comparisons. I finally wrote workarounds that transform floating point numbers to integers and then operate them.
我的PPC设备使用一个手表电池和一对AAA电池,用了很长时间。我发现这是因为我的掌上电脑使用了一套有限的寄存器,没有支持浮点计算的芯片。我试图解决这个问题,但我只是不能去掉和浮点数比较有关的计算操作。我最后将浮点数转换为整数,再操作它们。
来源: http://www.codeguru.com/Cpp/W-P/ce/memorymanagement/article.php/c6293/ |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
GUIDGen_release |
 1.0  |
2004-03-12 |
下载 |
|
|