Rev 534 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 534 | Rev 615 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | return 0; |
41 | return 0; |
42 | } |
42 | } |
43 | 43 | ||
44 | double fmath_get_decimal_exponent(double num) |
44 | double fmath_get_decimal_exponent(double num) |
45 | { //TODO: |
45 | { //TODO: |
46 | double value; |
46 | // double value; |
47 | // log10(2)*log2(x) => log10(x) |
47 | // log10(2)*log2(x) => log10(x) |
48 | /* __asm__ __volatile__ ( \ |
48 | /* __asm__ __volatile__ ( \ |
49 | "fldlg2 #load log10(2) \n\t" \ |
49 | "fldlg2 #load log10(2) \n\t" \ |
50 | "fxch %%st(1) \n\t" \ |
50 | "fxch %%st(1) \n\t" \ |
51 | "fyl2x #count st(0)*log2(st(1))->st(1); pop st(0) \n\t" \ |
51 | "fyl2x #count st(0)*log2(st(1))->st(1); pop st(0) \n\t" \ |
52 | : "=t" (value) : "0"(num) ); |
52 | : "=t" (value) : "0"(num) ); |
53 | */ return value; |
53 | */ return 1.0; |
54 | 54 | ||
55 | } |
55 | } |
56 | 56 | ||
57 | __u64 fmath_get_binary_mantisa(double num) |
57 | __u64 fmath_get_binary_mantisa(double num) |
58 | { //TODO: |
58 | { //TODO: |