Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 1 | Arm Optimized Routines |
| 2 | ---------------------- |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 3 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 4 | This repository contains implementations of math library functions |
Szabolcs Nagy | 11253b0 | 2018-11-12 11:10:57 +0000 | [diff] [blame] | 5 | provided by Arm under MIT License (See LICENSE). Contributions |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 6 | to this project are accepted, but the terms will need negotiation (so |
| 7 | relicensing and copyright assignment to the FSF is possible later). |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 8 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 9 | Source code layout: |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 10 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 11 | build/ - build directory (created by make). |
Szabolcs Nagy | 0af9fce | 2019-07-18 10:21:43 +0100 | [diff] [blame] | 12 | math/ - math subproject sources. |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 13 | math/include/ - math library public headers. |
Szabolcs Nagy | 0af9fce | 2019-07-18 10:21:43 +0100 | [diff] [blame] | 14 | math/test/ - math test and benchmark related sources. |
| 15 | math/tools/ - tools used for designing the algorithms. |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 16 | |
Szabolcs Nagy | 0af9fce | 2019-07-18 10:21:43 +0100 | [diff] [blame] | 17 | The steps to build the target libraries and run the tests: |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 18 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 19 | cp config.mk.dist config.mk |
| 20 | # edit config.mk if necessary ... |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 21 | make |
| 22 | make check |
| 23 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 24 | Or building outside of the source directory: |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 25 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 26 | ln -s path/to/src/Makefile Makefile |
| 27 | cp path/to/src/config.mk.dist config.mk |
| 28 | echo 'srcdir = path/to/src' >> config.mk |
| 29 | # further edits to config.mk |
| 30 | make |
| 31 | make check |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 32 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 33 | The test system requires libmpfr and libmpc. |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 34 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 35 | For cross build, CROSS_COMPILE should be set in config.mk and EMULATOR |
| 36 | should be set for cross testing (e.g. using qemu-user or remote access |
| 37 | to a target machine), see the examples in config.mk.dist. |