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. |
Szabolcs Nagy | 6b59443 | 2019-07-18 17:45:08 +0100 | [diff] [blame] | 16 | string/ - string routines subproject sources. |
| 17 | string/include/ - string library public headers. |
| 18 | string/test/ - string test and benchmark related sources. |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 19 | |
Szabolcs Nagy | 0af9fce | 2019-07-18 10:21:43 +0100 | [diff] [blame] | 20 | The steps to build the target libraries and run the tests: |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 21 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 22 | cp config.mk.dist config.mk |
| 23 | # edit config.mk if necessary ... |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 24 | make |
| 25 | make check |
| 26 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 27 | Or building outside of the source directory: |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 28 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 29 | ln -s path/to/src/Makefile Makefile |
| 30 | cp path/to/src/config.mk.dist config.mk |
| 31 | echo 'srcdir = path/to/src' >> config.mk |
| 32 | # further edits to config.mk |
| 33 | make |
| 34 | make check |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 35 | |
Szabolcs Nagy | 39dc36a | 2019-10-08 10:46:50 +0100 | [diff] [blame^] | 36 | Or building and testing the math subproject only: |
| 37 | |
| 38 | make all-math |
| 39 | make check-math |
| 40 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 41 | The test system requires libmpfr and libmpc. |
Szabolcs Nagy | 32fe1c5 | 2019-10-08 10:41:03 +0100 | [diff] [blame] | 42 | For example on debian linux they can be installed as: |
| 43 | |
| 44 | sudo apt-get install libmpfr-dev libmpc-dev |
George Lander | da55ef9 | 2015-11-19 12:05:06 +0000 | [diff] [blame] | 45 | |
Szabolcs Nagy | 7889228 | 2018-04-24 17:10:05 +0100 | [diff] [blame] | 46 | For cross build, CROSS_COMPILE should be set in config.mk and EMULATOR |
| 47 | should be set for cross testing (e.g. using qemu-user or remote access |
| 48 | to a target machine), see the examples in config.mk.dist. |