Skip to content

Commit 8e7ba5c

Browse files
author
aslupik
committed
.
1 parent 8d547b2 commit 8e7ba5c

File tree

4 files changed

+8
-30
lines changed

4 files changed

+8
-30
lines changed

README.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
This library implements "Fix64", a 64 bit fixed point 31.32 numeric type and transcendent operations on it (square root, trig, etc). It is well covered by unit tests. However, it is still missing some operations; in particular, Tangent is not well tested yet.
1+
This library implements "Fix64", a 64 bit fixed point 31.32 numeric type and transcendent operations on it (square root, trig, etc). It is well covered by unit tests. However, it is still missing some operations; in particular, Tangent is not well tested yet.
2+
3+
In the unit tests you'll find implementations for Int16-based (Q7.8) and Byte-based (Q3.4) numeric types. These were used for exploration of boundary conditions etc., but I'm keeping the code there only for reference.
4+
5+
This project started as a port of libfixmath (http://code.google.com/p/libfixmath/).
6+
7+
Note that the type requires explicit casts to convert to floating point and this is intentional, the difference between fixed point and floating point math is as important as the one between floating point and integral math.

src/Fix64.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static Fix64 FastMul(Fix64 x, Fix64 y) {
257257
return new Fix64(sum);
258258
}
259259

260-
[MethodImplAttribute(MethodImplOptions.AggressiveInlining)]
260+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
261261
static int CountLeadingZeroes(ulong x) {
262262
int result = 0;
263263
while ((x & 0xF000000000000000) == 0) { result += 4; x <<= 4; }

src/LICENSE.txt

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/README.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)