-
Notifications
You must be signed in to change notification settings - Fork 1
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
11 changed files
with
59 additions
and
572 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,29 @@ | ||
|
||
## ieee754b16 | ||
|
||
Java functions to convert to and from the [IEEE754](https://en.wikipedia.org/wiki/IEEE_754) | ||
`binary16` type. | ||
|
||
## Features | ||
|
||
* Conversion between `double`/`float` and `binary16` values. | ||
* High coverage test suite (100%, minus an unreachable private constructor). | ||
* [OSGi-ready](https://www.osgi.org/) | ||
* [JPMS-ready](https://en.wikipedia.org/wiki/Java_Platform_Module_System) | ||
* ISC license. | ||
|
||
## Usage | ||
|
||
The package uses the `char` type to store values of the `binary16` type. | ||
To convert a double-precision value `32.0` to `binary16` format: | ||
|
||
``` | ||
final char k = Binary16.packDouble(32.0); | ||
``` | ||
|
||
To unpack values from the `binary16` format: | ||
|
||
``` | ||
final double r = Binary16.unpackDouble(k); | ||
``` | ||
|
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.ieee754b16.documentation/src/main/assembly/documentation.xml
This file was deleted.
Oops, something went wrong.
52 changes: 0 additions & 52 deletions
52
...e754b16.documentation/src/main/java/com/io7m/ieee754b16/documentation/IDocumentation.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...eee754b16.documentation/src/main/java/com/io7m/ieee754b16/documentation/package-info.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.