blob: 32747ecfdd3ccf6c9526a06b05d8c92dca37cfdc [file] [log] [blame]
Szabolcs Nagy78892282018-04-24 17:10:05 +01001Arm Optimized Routines
2----------------------
George Landerda55ef92015-11-19 12:05:06 +00003
Szabolcs Nagy78892282018-04-24 17:10:05 +01004This repository contains implementations of math library functions
Szabolcs Nagy11253b02018-11-12 11:10:57 +00005provided by Arm under MIT License (See LICENSE). Contributions
Szabolcs Nagy78892282018-04-24 17:10:05 +01006to this project are accepted, but the terms will need negotiation (so
7relicensing and copyright assignment to the FSF is possible later).
George Landerda55ef92015-11-19 12:05:06 +00008
Szabolcs Nagy78892282018-04-24 17:10:05 +01009Source code layout:
George Landerda55ef92015-11-19 12:05:06 +000010
Szabolcs Nagy78892282018-04-24 17:10:05 +010011build/ - build directory (created by make).
Szabolcs Nagy0af9fce2019-07-18 10:21:43 +010012math/ - math subproject sources.
Szabolcs Nagy78892282018-04-24 17:10:05 +010013math/include/ - math library public headers.
Szabolcs Nagy0af9fce2019-07-18 10:21:43 +010014math/test/ - math test and benchmark related sources.
15math/tools/ - tools used for designing the algorithms.
Szabolcs Nagy6b594432019-07-18 17:45:08 +010016string/ - string routines subproject sources.
17string/include/ - string library public headers.
18string/test/ - string test and benchmark related sources.
George Landerda55ef92015-11-19 12:05:06 +000019
Szabolcs Nagy0af9fce2019-07-18 10:21:43 +010020The steps to build the target libraries and run the tests:
George Landerda55ef92015-11-19 12:05:06 +000021
Szabolcs Nagy78892282018-04-24 17:10:05 +010022cp config.mk.dist config.mk
23# edit config.mk if necessary ...
George Landerda55ef92015-11-19 12:05:06 +000024make
25make check
26
Szabolcs Nagy78892282018-04-24 17:10:05 +010027Or building outside of the source directory:
George Landerda55ef92015-11-19 12:05:06 +000028
Szabolcs Nagy78892282018-04-24 17:10:05 +010029ln -s path/to/src/Makefile Makefile
30cp path/to/src/config.mk.dist config.mk
31echo 'srcdir = path/to/src' >> config.mk
32# further edits to config.mk
33make
34make check
George Landerda55ef92015-11-19 12:05:06 +000035
Szabolcs Nagy39dc36a2019-10-08 10:46:50 +010036Or building and testing the math subproject only:
37
38make all-math
39make check-math
40
Szabolcs Nagy78892282018-04-24 17:10:05 +010041The test system requires libmpfr and libmpc.
Szabolcs Nagy32fe1c52019-10-08 10:41:03 +010042For example on debian linux they can be installed as:
43
44sudo apt-get install libmpfr-dev libmpc-dev
George Landerda55ef92015-11-19 12:05:06 +000045
Szabolcs Nagy78892282018-04-24 17:10:05 +010046For cross build, CROSS_COMPILE should be set in config.mk and EMULATOR
47should be set for cross testing (e.g. using qemu-user or remote access
48to a target machine), see the examples in config.mk.dist.