Skip to content

Commit

Permalink
Eliminate jstructural
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed May 4, 2024
1 parent 1c487af commit 24b7caa
Show file tree
Hide file tree
Showing 13 changed files with 74 additions and 536 deletions.
33 changes: 33 additions & 0 deletions README.in
@@ -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.
34 changes: 34 additions & 0 deletions README.md
Expand Up @@ -13,3 +13,37 @@ jnfp
| OpenJDK (Temurin) LTS | Linux | [![Build (OpenJDK (Temurin) LTS, Linux)](https://img.shields.io/github/actions/workflow/status/io7m-com/jnfp/main.linux.temurin.lts.yml)](https://www.github.com/io7m-com/jnfp/actions?query=workflow%3Amain.linux.temurin.lts)|
| OpenJDK (Temurin) Current | Windows | [![Build (OpenJDK (Temurin) Current, Windows)](https://img.shields.io/github/actions/workflow/status/io7m-com/jnfp/main.windows.temurin.current.yml)](https://www.github.com/io7m-com/jnfp/actions?query=workflow%3Amain.windows.temurin.current)|
| OpenJDK (Temurin) LTS | Windows | [![Build (OpenJDK (Temurin) LTS, Windows)](https://img.shields.io/github/actions/workflow/status/io7m-com/jnfp/main.windows.temurin.lts.yml)](https://www.github.com/io7m-com/jnfp/actions?query=workflow%3Amain.windows.temurin.lts)|

## 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.

215 changes: 0 additions & 215 deletions com.io7m.jnfp.documentation/pom.xml

This file was deleted.

20 changes: 0 additions & 20 deletions com.io7m.jnfp.documentation/src/main/assembly/documentation.xml

This file was deleted.

This file was deleted.

This file was deleted.

26 changes: 0 additions & 26 deletions com.io7m.jnfp.documentation/src/main/java/module-info.java

This file was deleted.

0 comments on commit 24b7caa

Please sign in to comment.