Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plos-clan/libmath
C binding of libm crate.
https://github.com/plos-clan/libmath
Last synced: about 2 months ago
JSON representation
C binding of libm crate.
- Host: GitHub
- URL: https://github.com/plos-clan/libmath
- Owner: plos-clan
- License: mit
- Created: 2024-11-25T22:43:02.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-25T22:44:51.000Z (2 months ago)
- Last Synced: 2024-11-25T23:30:10.001Z (2 months ago)
- Language: Rust
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libmath
C binding of `libm` crate for x86 or x86_64 OS, using pure soft-float without SSE or AVX.
## Usage
Download the header file and lib from [releases](https://github.com/plos-clan/libm/releases/tag/release).
Link the library to your project.
## Build
Build directly to get the two target files:
```bash
cargo build --release
```The production build will be in `target//release/` directory.
And use `cbindgen` to generate the header file:
```bash
cargo install cbindgen
cbindgen --output math.h
```