首页>
外国专利>
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
展开▼
机译:快速计算作为浮点数据类型的2的幂的方法
展开▼
页面导航
摘要
著录项
相似文献
摘要
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.
展开▼