-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Affects: io7m-com/.github#2
- Loading branch information
Showing
13 changed files
with
74 additions
and
536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
## jnfp | ||
|
||
Java functions to convert between floating point and _normalized fixed point_ | ||
values. | ||
|
||
## Features | ||
|
||
* Conversion between unsigned normalized fixed-point numbers and floating point numbers. | ||
* Conversion between signed normalized fixed-point numbers and floating point numbers. | ||
* High coverage test suite. | ||
* [OSGi-ready](https://www.osgi.org/) | ||
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System) | ||
* ISC license. | ||
|
||
## Usage | ||
|
||
Convert a floating point value to its 32-bit unsigned normalized fixed point | ||
representation: | ||
|
||
``` | ||
var r = NFPUnsignedFloatLong.toUnsignedNormalized(0.25, 32); | ||
``` | ||
|
||
Convert a 32-bit unsigned normalized fixed point value to its floating point | ||
representation: | ||
|
||
``` | ||
var s = NFPUnsignedFloatLong.fromUnsignedNormalized(r, 32); | ||
``` | ||
|
||
Classes exist for signed, unsigned, `int`, `long`, `float`, and `double` | ||
specializations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
com.io7m.jnfp.documentation/src/main/assembly/documentation.xml
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
com.io7m.jnfp.documentation/src/main/java/com/io7m/jnfp/documentation/Documentation.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
com.io7m.jnfp.documentation/src/main/java/com/io7m/jnfp/documentation/package-info.java
This file was deleted.
Oops, something went wrong.
26 changes: 0 additions & 26 deletions
26
com.io7m.jnfp.documentation/src/main/java/module-info.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.