![]() Use the remainder, r = x - x_B, interpreted as a fraction, to linearly interpolate between SQRTLUT(i) and the next value in the table SQRTLUT(i+1). ![]() Generate a lookup table, SQRTLUT, such that the integer i = x_B- 2^(B-2) + 1 is used as an index to SQRTLUT so that sqrt(x_B) can be evaluated by looking up the index sqrt(x_B) = SQRTLUT(i). Use the function fi_normalize_unsigned_8_bit_byte(), described in the example Normalize Data for Lookup Tables, to normalize the input u > 0 such that u = x*2^n, 0.5 <= x < 2, and n is even.Įxtract the upper B bits of x. Declare the number of bits in a byte, B, as a constant.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |