Fork of the OpenLibm math library with fx-9860G and fx-CG 50 support.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Lephenixnoir 69b3140a0d
sh3eb: add new README file
1 month ago
.github Update FUNDING.yml 9 months ago
aarch64 Cleanup `ARCH` handling, reorganize `AArch64` and `Make.inc`. 3 years ago
amd64 Export `fenv` functions on all platforms (#213) 3 months ago
arm Remove unused Symbol.map files. 5 years ago
bsdsrc WIP: Enable build on aarch64 4 years ago
docs Update list of libm libraries 3 months ago
i387 Fix invalid assembly directive caught by clang 4 years ago
include sh3eb: add suport for the sh3eb softfp platform 1 month ago
ld80 Fix undefined reference to __fpgetprec on i386 4 years ago
ld128 Fix compilation on AArch64 3 years ago
mips Using cdefs-compat.h and stdint.h instead <sys/types.h> 2 years ago
powerpc Support powerpc 4 years ago
s390 s390(x) port 2 years ago
sh3eb sh3eb: add suport for the sh3eb softfp platform 1 month ago
src sh3eb: add suport for the sh3eb softfp platform 1 month ago
test update ULPs for s390 (#187) 2 years ago
wasm32 wasm32 support (#192) 1 year ago
.gitignore add .pc to .gitignore 6 years ago
.mailmap Add mailmap 8 years ago
.travis.yml travis: Add mips, mipsel, mips64el build. 2 years ago
LICENSE.md Update references to JuliaLang to point to JuliaMath (#182) 2 years ago
Make.inc sh3eb: add suport for the sh3eb softfp platform 1 month ago
Makefile sh3eb: add suport for the sh3eb softfp platform 1 month ago
README-OpenLibm.md sh3eb: move older README 1 month ago
README.md sh3eb: add new README file 1 month ago
appveyor.yml Update appveyor.yml 2 years ago
openlibm.pc.in Update references to JuliaLang to point to JuliaMath (#182) 2 years ago

README.md

Soft-FP sh3eb port of OpenLibm

This is a fork of OpenLibm with support for the sh3eb architecture, intended for add-in programming on fx-9860G and fx-CG 50.

Building

You will need a GCC toolchain built with --target=sh3eb-elf, such as the sh-elf-gcc commonly used on Planète Casio.

First locate the compiler’s install directory. This is normally the lib/gcc/sh3eb-elf/<version>/ folder inside the install path of the compiler.

% PREFIX=$(sh-elf-gcc --print-search-dirs | grep install | sed 's/install: //')

You can then build and install the static libopenlibm.a archive and the headers.

% make USEGCC=1 TOOLPREFIX=sh-elf- libdir="$PREFIX" includedir="$PREFIX/include" install-static install-headers

Using in a program

Simply link with -lopenlibm as you would do with -lm.

README and Licensing

See the original README file in README-OpenLibm.md. OpenLibm contains code covered by various licenses, see LICENSE.md.