Binary scaling: Difference between revisions

Content deleted Content added
No edit summary
Line 1:
{{RefimproveMore citations needed|date=December 2009}}
{{Use dmy dates|date=August 2019|cs1-dates=y}}
'''Binary scaling''' is a [[computer programming]] technique used typically in embedded [[C (programming language)|C]], [[Digital signal processing|DSP]] and [[assembly language|assembler]] programs to implement pseudo-[[floating point]] operations by using the native [[integer]] arithmetic of the processor.
 
==Overview==
Line 81:
Binary scaling is currently used in the [[Discrete cosine transform|DCT]] used to compress [[JPEG]] images in utilities such as [[GIMP]].
 
Although floating point has taken over to a large degree, where speed and extra accuracy are required, binary scaling works on simpler hardware and is more accurate when the range of values is known in advance.{{Clarify|date=March 2016|post-text=→[[Talk:Binary_scalingBinary scaling#Comparison_with_Floating_PointComparison with Floating Point|talk]]}}
 
==See also==
 
{{Portal|Computer Science}}
* [[Libfixmath]] – a library written in C for fixed-point math
* [[Q (number format)]]