blob: 440f08a59641a0e94eba2159beb3746cbeb40982 [file] [log] [blame]
Szabolcs Nagy78892282018-04-24 17:10:05 +01001Arm Optimized Routines
2----------------------
George Landerda55ef92015-11-19 12:05:06 +00003
Szabolcs Nagy709020e2019-11-27 15:00:10 +00004This repository contains implementations of library functions
Szabolcs Nagy11253b02018-11-12 11:10:57 +00005provided by Arm under MIT License (See LICENSE). Contributions
Szabolcs Nagydbb919d2020-01-02 17:15:16 +00006to this project are accepted, but Contributors have to sign an
7Assignment Agreement, please follow the instructions in
8contributor-agreement.pdf. This is needed so upstreaming code
9to projects that require copyright assignment is possible.
George Landerda55ef92015-11-19 12:05:06 +000010
Szabolcs Nagy709020e2019-11-27 15:00:10 +000011Regular quarterly releases are tagged as vYY.MM (e.g. v19.11).
12
Szabolcs Nagy78892282018-04-24 17:10:05 +010013Source code layout:
George Landerda55ef92015-11-19 12:05:06 +000014
Szabolcs Nagy78892282018-04-24 17:10:05 +010015build/ - build directory (created by make).
Szabolcs Nagy0af9fce2019-07-18 10:21:43 +010016math/ - math subproject sources.
Szabolcs Nagy78892282018-04-24 17:10:05 +010017math/include/ - math library public headers.
Szabolcs Nagy0af9fce2019-07-18 10:21:43 +010018math/test/ - math test and benchmark related sources.
19math/tools/ - tools used for designing the algorithms.
Szabolcs Nagy6b594432019-07-18 17:45:08 +010020string/ - string routines subproject sources.
21string/include/ - string library public headers.
22string/test/ - string test and benchmark related sources.
George Landerda55ef92015-11-19 12:05:06 +000023
Szabolcs Nagy0af9fce2019-07-18 10:21:43 +010024The steps to build the target libraries and run the tests:
George Landerda55ef92015-11-19 12:05:06 +000025
Szabolcs Nagy78892282018-04-24 17:10:05 +010026cp config.mk.dist config.mk
27# edit config.mk if necessary ...
George Landerda55ef92015-11-19 12:05:06 +000028make
29make check
30
Szabolcs Nagy78892282018-04-24 17:10:05 +010031Or building outside of the source directory:
George Landerda55ef92015-11-19 12:05:06 +000032
Szabolcs Nagy78892282018-04-24 17:10:05 +010033ln -s path/to/src/Makefile Makefile
34cp path/to/src/config.mk.dist config.mk
35echo 'srcdir = path/to/src' >> config.mk
36# further edits to config.mk
37make
38make check
George Landerda55ef92015-11-19 12:05:06 +000039
Szabolcs Nagy39dc36a2019-10-08 10:46:50 +010040Or building and testing the math subproject only:
41
42make all-math
43make check-math
44
Szabolcs Nagy78892282018-04-24 17:10:05 +010045The test system requires libmpfr and libmpc.
Szabolcs Nagy32fe1c52019-10-08 10:41:03 +010046For example on debian linux they can be installed as:
47
48sudo apt-get install libmpfr-dev libmpc-dev
George Landerda55ef92015-11-19 12:05:06 +000049
Szabolcs Nagy78892282018-04-24 17:10:05 +010050For cross build, CROSS_COMPILE should be set in config.mk and EMULATOR
51should be set for cross testing (e.g. using qemu-user or remote access
52to a target machine), see the examples in config.mk.dist.