摘要
在8/16位单片机或32位定点DSP实时测控系统中,汇编应用程序仍占主导地位。介绍一种用定点实数格式实现平方根汇编子程序的方法,并通过与3字节浮点数平方根汇编子程序运算结果比较发现:前者比后者的精度更高,在保持精度不变时,开平方根数的范围更大。
In real time measurement control sysytem of 8-16 bits single chip microcomputer or 32 bits DSP,assembly application progrom still dominates.This paper introduces a method that implements the square root assembly subrotine(the former)with the fixed-point number format.By comparing with the calculating results of 3 bytes float-point number square root assembly subrotine(the latter),it was found that the former′s calculating accuracy is higher than the latter′s and the range of the square root numbers is wider in keeping accuracy constant.
出处
《江苏石油化工学院学报》
2002年第4期58-60,共3页
Journal of Jiangsu Institute of Petrochemical Technology