blob: f9df6f935521a4492bc2d1791396bf1f7658b9ca [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.
Ola Liljedahl6a988f62020-02-27 15:10:03 +010020networking/ - networking subproject sources.
21networking/include/ - networking library public headers.
22networking/test/ - networking test and benchmark related sources.
Szabolcs Nagy6b594432019-07-18 17:45:08 +010023string/ - string routines subproject sources.
24string/include/ - string library public headers.
25string/test/ - string test and benchmark related sources.
George Landerda55ef92015-11-19 12:05:06 +000026
Szabolcs Nagy0af9fce2019-07-18 10:21:43 +010027The steps to build the target libraries and run the tests:
George Landerda55ef92015-11-19 12:05:06 +000028
Szabolcs Nagy78892282018-04-24 17:10:05 +010029cp config.mk.dist config.mk
30# edit config.mk if necessary ...
George Landerda55ef92015-11-19 12:05:06 +000031make
32make check
33
Szabolcs Nagy78892282018-04-24 17:10:05 +010034Or building outside of the source directory:
George Landerda55ef92015-11-19 12:05:06 +000035
Szabolcs Nagy78892282018-04-24 17:10:05 +010036ln -s path/to/src/Makefile Makefile
37cp path/to/src/config.mk.dist config.mk
38echo 'srcdir = path/to/src' >> config.mk
39# further edits to config.mk
40make
41make check
George Landerda55ef92015-11-19 12:05:06 +000042
Szabolcs Nagy39dc36a2019-10-08 10:46:50 +010043Or building and testing the math subproject only:
44
45make all-math
46make check-math
47
Szabolcs Nagy78892282018-04-24 17:10:05 +010048The test system requires libmpfr and libmpc.
Szabolcs Nagy32fe1c52019-10-08 10:41:03 +010049For example on debian linux they can be installed as:
50
51sudo apt-get install libmpfr-dev libmpc-dev
George Landerda55ef92015-11-19 12:05:06 +000052
Szabolcs Nagy78892282018-04-24 17:10:05 +010053For cross build, CROSS_COMPILE should be set in config.mk and EMULATOR
54should be set for cross testing (e.g. using qemu-user or remote access
55to a target machine), see the examples in config.mk.dist.