fixed-point
Fixed point multiplication "solution," crazy or viable?
Assume this much: I\'m using a 16.16 fixed point system. System is 32 bit. CPU has no floating point processor.[详细]
2023-01-01 16:36 分类:问答Is it better to use GL_FIXED or GL_FLOAT on Android
I would have assumed that GL_FIXED was faster, but the iPhone docs actually say to use GL_FLOAT because GL_FIXED has to be converted to GL_FLOAT. Is it the same on Android? I suppose it varies by phon[详细]
2022-12-31 06:59 分类:问答reverse formula conversion
I have a formula which calculate position for Y, here it is: double y = ...; double minX = ..; double scaleY = ..;[详细]
2022-12-30 08:51 分类:问答Floating point conversion from Fixed point algorithm
I have an application which is using 24 bit fixed point calculation.I am porting it to a hardware which does support floating point, so for speed optimization I need to convert all fixed point based c[详细]
2022-12-27 01:40 分类:问答Fixed Point to Floating Point and Backwards
Is converting Fixed Pt. (fixed n bit for fraction) to IEEE double safe ? ie: does IEEE double format can represent all numbers a fixed point can represent ?[详细]
2022-12-25 20:28 分类:问答How to name functions to extract parts of a decimal number?
I am writing a class for handling decimal numbers, e.g. \"123.456\". I want one function for extracting the digits before the decimal point (123), and one function to extract the digits after the deci[详细]
2022-12-20 07:55 分类:问答Fastest way to convert 16.16 fixed point to 32 bit float in c/c++ on x86?
Most people seem to want to go the other way. I\'m wondering if there is a fast way to convert fixed point to floating poin开发者_运维技巧t, ideally using SSE2. Either straight C or C++ or even asm wo[详细]
2022-12-20 04:23 分类:问答Fixed point inverse sine
Does anyone know a (preferably fast) way to calculate the sine of an angle in 4.12 fixed point? (where the result is either 32768ths of a c开发者_JAVA技巧ircle or degrees)[详细]
2022-12-12 00:46 分类:问答