摘要 |
Certain aspects of a method and system for implementing approximation of a square function may comprise generating an output value by subtracting an absolute value of a first received input and a second received input. The generated output may be left shifted so as to generate a left shifted value. An output may be generated by left shifting by a plurality of bits, a sum of the generated left shifted value and the absolute value of the first received input. The second received input S may be determined by S=2<SUP>└log</SUP><SUP><SUB2>2</SUB2></SUP><SUP>X┘</SUP>, where X is the first received input. The plurality of bits used for left shifting during generation of the output may be determined by log<SUB>2</SUB>(S). A leading '1' in the first received input may be detected in order to generate the second received input.
|