首页>
外国专利>
FAST METHOD FOR CALCULATING POWERS OF TWO AS A FLOATING POINT DATA TYPE
FAST METHOD FOR CALCULATING POWERS OF TWO AS A FLOATING POINT DATA TYPE
展开▼
机译:快速计算两种浮点数据类型的幂的方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
A computing system is adapted to calculate an exponent portion of a floating point data type, and is preferably employed in calculating powers of two in a computer language processing environment supporting a union declaration functionality and a left shift functionality. Accordingly, an input receives an exponent value, and a bias application module biases the exponent value based on a selected precision of a floating point data type. Also, a storage module stores the exponent value in a storage variable having a size determined based on the selected precision. Further, a left shift application module shifts the exponent value left by a number of bits determined based on the selected precision. Finally, an output returns the storage variable as the floating point data type having the selected precision.
展开▼