aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2019-01-08 13:58:11 -0800
committerHaibo Huang <hhb@google.com>2019-01-11 13:02:13 -0800
commit4ced35fcfcda5baddd092390103b7370827b9429 (patch)
tree2c7a6da0b462552d70c0eb63ed58bb0c4e81e0bb
parent9e442bb3019a8926bfbd90e888bb92e468bdec9f (diff)
parent6e60567b9bbf59b38c72493faf7cc9eb6ce43c64 (diff)
downloadarm-optimized-routines-4ced35fcfcda5baddd092390103b7370827b9429.tar.gz
Merge remote-tracking branch 'aosp/upstream-master' into arm-optimized-routines
Test: bionic unit tests Change-Id: I45009cc50332d02bbc977790c7ed7bb18fd67fc6
-rw-r--r--LICENSE223
-rw-r--r--METADATA8
-rw-r--r--MODULE_LICENSE_MIT (renamed from MODULE_LICENSE_APACHE2)0
-rw-r--r--Makefile14
-rw-r--r--README2
-rwxr-xr-xauxiliary/remez.jl16
-rw-r--r--config.mk.dist14
-rw-r--r--math/cosf.c14
-rw-r--r--math/exp.c20
-rw-r--r--math/exp2.c20
-rw-r--r--math/exp2f.c18
-rw-r--r--math/exp2f_data.c16
-rw-r--r--math/exp_data.c14
-rw-r--r--math/expf.c18
-rw-r--r--math/include/mathlib.h14
-rw-r--r--math/log.c18
-rw-r--r--math/log2.c18
-rw-r--r--math/log2_data.c14
-rw-r--r--math/log2f.c18
-rw-r--r--math/log2f_data.c16
-rw-r--r--math/log_data.c14
-rw-r--r--math/logf.c18
-rw-r--r--math/logf_data.c16
-rw-r--r--math/math_config.h16
-rw-r--r--math/math_err.c16
-rw-r--r--math/math_errf.c18
-rw-r--r--math/pow.c22
-rw-r--r--math/pow_log_data.c14
-rw-r--r--math/powf.c32
-rw-r--r--math/powf_log2_data.c16
-rw-r--r--math/sincosf.c14
-rw-r--r--math/sincosf.h14
-rw-r--r--math/sincosf_data.c14
-rw-r--r--math/sinf.c14
-rw-r--r--math/single/dunder.c16
-rw-r--r--math/single/e_expf.c16
-rw-r--r--math/single/e_logf.c16
-rw-r--r--math/single/e_powf.c16
-rw-r--r--math/single/e_rem_pio2.c16
-rw-r--r--math/single/funder.c16
-rw-r--r--math/single/ieee_status.c16
-rw-r--r--math/single/math_private.h16
-rw-r--r--math/single/poly.c16
-rw-r--r--math/single/rredf.c16
-rw-r--r--math/single/rredf.h16
-rw-r--r--math/single/s_cosf.c16
-rw-r--r--math/single/s_sincosf.c16
-rw-r--r--math/single/s_sinf.c16
-rw-r--r--math/single/s_tanf.c16
-rw-r--r--test/mathbench.c14
-rw-r--r--test/mathtest.c16
-rw-r--r--test/rtest/dotest.c16
-rw-r--r--test/rtest/intern.h16
-rw-r--r--test/rtest/main.c16
-rw-r--r--test/rtest/random.c16
-rw-r--r--test/rtest/random.h16
-rw-r--r--test/rtest/semi.c16
-rw-r--r--test/rtest/semi.h16
-rw-r--r--test/rtest/types.h16
-rw-r--r--test/rtest/wrappers.c16
-rw-r--r--test/rtest/wrappers.h16
-rw-r--r--test/testcases/directed/cosf.tst16
-rw-r--r--test/testcases/directed/exp.tst14
-rw-r--r--test/testcases/directed/exp2.tst14
-rw-r--r--test/testcases/directed/exp2f.tst16
-rw-r--r--test/testcases/directed/expf.tst16
-rw-r--r--test/testcases/directed/log.tst14
-rw-r--r--test/testcases/directed/log2.tst14
-rw-r--r--test/testcases/directed/log2f.tst16
-rw-r--r--test/testcases/directed/logf.tst16
-rw-r--r--test/testcases/directed/pow.tst14
-rw-r--r--test/testcases/directed/powf.tst16
-rw-r--r--test/testcases/directed/rred.tst16
-rw-r--r--test/testcases/directed/rred2.tst16
-rw-r--r--test/testcases/directed/rred3.tst16
-rw-r--r--test/testcases/directed/rred4.tst16
-rw-r--r--test/testcases/directed/rred5.tst16
-rw-r--r--test/testcases/directed/sincosf.tst14
-rw-r--r--test/testcases/directed/sinf.tst16
-rw-r--r--test/testcases/random/double.tst16
-rw-r--r--test/testcases/random/float.tst16
81 files changed, 188 insertions, 1283 deletions
diff --git a/LICENSE b/LICENSE
index d645695..453ae10 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,202 +1,21 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+MIT License
+
+Copyright (c) 1999-2018, Arm Limited.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/METADATA b/METADATA
index eb07e87..e63c7e7 100644
--- a/METADATA
+++ b/METADATA
@@ -9,11 +9,11 @@ third_party {
type: GIT
value: "https://github.com/ARM-software/optimized-routines.git"
}
- version: "e875f40f0b2ad71c5381a431e6d71829770c7ab7"
+ version: "6e60567b9bbf59b38c72493faf7cc9eb6ce43c64"
license_type: NOTICE
last_upgrade_date {
- year: 2018
- month: 10
- day: 29
+ year: 2019
+ month: 1
+ day: 8
}
}
diff --git a/MODULE_LICENSE_APACHE2 b/MODULE_LICENSE_MIT
index e69de29..e69de29 100644
--- a/MODULE_LICENSE_APACHE2
+++ b/MODULE_LICENSE_MIT
diff --git a/Makefile b/Makefile
index c54eaf1..f5b5d3b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,7 @@
# Makefile - requires GNU make
#
# Copyright (c) 2018, Arm Limited.
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# SPDX-License-Identifier: MIT
srcdir = .
prefix = /usr
diff --git a/README b/README
index c5de9bf..7c6811b 100644
--- a/README
+++ b/README
@@ -2,7 +2,7 @@ Arm Optimized Routines
----------------------
This repository contains implementations of math library functions
-provided by Arm under Apache License 2.0 (See LICENSE). Contributions
+provided by Arm under MIT License (See LICENSE). Contributions
to this project are accepted, but the terms will need negotiation (so
relicensing and copyright assignment to the FSF is possible later).
diff --git a/auxiliary/remez.jl b/auxiliary/remez.jl
index 01e62f9..f479fc5 100755
--- a/auxiliary/remez.jl
+++ b/auxiliary/remez.jl
@@ -3,20 +3,8 @@
# remez.jl - implementation of the Remez algorithm for polynomial approximation
#
-# Copyright (c) 2015, Arm Limited.
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# Copyright (c) 2015-2018, Arm Limited.
+# SPDX-License-Identifier: MIT
import Base.\
diff --git a/config.mk.dist b/config.mk.dist
index d951a93..7cf7393 100644
--- a/config.mk.dist
+++ b/config.mk.dist
@@ -1,19 +1,7 @@
# Example config.mk
#
# Copyright (c) 2018, Arm Limited.
-# SPDX-License-Identifier: Apache-2.0
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
+# SPDX-License-Identifier: MIT
HOST_CC = gcc
HOST_CFLAGS = -std=c99 -O2
diff --git a/math/cosf.c b/math/cosf.c
index 5a635d1..84a138f 100644
--- a/math/cosf.c
+++ b/math/cosf.c
@@ -2,19 +2,7 @@
* Single-precision cos function.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#if WANT_SINGLEPREC
diff --git a/math/exp.c b/math/exp.c
index ee09b97..ffd3111 100644
--- a/math/exp.c
+++ b/math/exp.c
@@ -2,19 +2,7 @@
* Double-precision e^x function.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
@@ -51,7 +39,7 @@ specialcase (double_t tmp, uint64_t sbits, uint64_t ki)
sbits -= 1009ull << 52;
scale = asdouble (sbits);
y = 0x1p1009 * (scale + scale * tmp);
- return check_oflow (y);
+ return check_oflow (eval_as_double (y));
}
/* k < 0, need special care in the subnormal range. */
sbits += 1022ull << 52;
@@ -75,7 +63,7 @@ specialcase (double_t tmp, uint64_t sbits, uint64_t ki)
force_eval_double (opt_barrier_double (0x1p-1022) * 0x1p-1022);
}
y = 0x1p-1022 * y;
- return check_uflow (y);
+ return check_uflow (eval_as_double (y));
}
/* Top 12 bits of a double (sign and exponent bits). */
@@ -161,7 +149,7 @@ exp_inline (double x, double xtail, int hastail)
scale = asdouble (sbits);
/* Note: tmp == 0 or |tmp| > 2^-200 and scale > 2^-739, so there
is no spurious underflow here even without fma. */
- return scale + scale * tmp;
+ return eval_as_double (scale + scale * tmp);
}
double
diff --git a/math/exp2.c b/math/exp2.c
index e6c5c20..fbedbcb 100644
--- a/math/exp2.c
+++ b/math/exp2.c
@@ -2,19 +2,7 @@
* Double-precision 2^x function.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
@@ -49,7 +37,7 @@ specialcase (double_t tmp, uint64_t sbits, uint64_t ki)
sbits -= 1ull << 52;
scale = asdouble (sbits);
y = 2 * (scale + scale * tmp);
- return check_oflow (y);
+ return check_oflow (eval_as_double (y));
}
/* k < 0, need special care in the subnormal range. */
sbits += 1022ull << 52;
@@ -73,7 +61,7 @@ specialcase (double_t tmp, uint64_t sbits, uint64_t ki)
force_eval_double (opt_barrier_double (0x1p-1022) * 0x1p-1022);
}
y = 0x1p-1022 * y;
- return check_uflow (y);
+ return check_uflow (eval_as_double (y));
}
/* Top 12 bits of a double (sign and exponent bits). */
@@ -143,7 +131,7 @@ exp2 (double x)
scale = asdouble (sbits);
/* Note: tmp == 0 or |tmp| > 2^-65 and scale > 2^-928, so there
is no spurious underflow here even without fma. */
- return scale + scale * tmp;
+ return eval_as_double (scale + scale * tmp);
}
#if USE_GLIBC_ABI
strong_alias (exp2, __exp2_finite)
diff --git a/math/exp2f.c b/math/exp2f.c
index b9570ba..94b3253 100644
--- a/math/exp2f.c
+++ b/math/exp2f.c
@@ -1,20 +1,8 @@
/*
* Single-precision 2^x function.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
@@ -84,7 +72,7 @@ exp2f (float x)
y = C[2] * r + 1;
y = z * r2 + y;
y = y * s;
- return (float) y;
+ return eval_as_float (y);
}
#if USE_GLIBC_ABI
strong_alias (exp2f, __exp2f_finite)
diff --git a/math/exp2f_data.c b/math/exp2f_data.c
index a74844b..3fb0ad1 100644
--- a/math/exp2f_data.c
+++ b/math/exp2f_data.c
@@ -1,20 +1,8 @@
/*
* Shared data between expf, exp2f and powf.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include "math_config.h"
diff --git a/math/exp_data.c b/math/exp_data.c
index 2961a94..cba7683 100644
--- a/math/exp_data.c
+++ b/math/exp_data.c
@@ -2,19 +2,7 @@
* Shared data between exp, exp2 and pow.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include "math_config.h"
diff --git a/math/expf.c b/math/expf.c
index 61ed55a..f8238a7 100644
--- a/math/expf.c
+++ b/math/expf.c
@@ -1,20 +1,8 @@
/*
* Single-precision e^x function.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#if WANT_SINGLEPREC
@@ -99,7 +87,7 @@ expf (float x)
y = C[2] * r + 1;
y = z * r2 + y;
y = y * s;
- return (float) y;
+ return eval_as_float (y);
}
#if USE_GLIBC_ABI
strong_alias (expf, __expf_finite)
diff --git a/math/include/mathlib.h b/math/include/mathlib.h
index a92094f..aac2d4d 100644
--- a/math/include/mathlib.h
+++ b/math/include/mathlib.h
@@ -2,19 +2,7 @@
* Public API.
*
* Copyright (c) 2015-2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
float sinf (float);
diff --git a/math/log.c b/math/log.c
index 29e0cc1..1283ef2 100644
--- a/math/log.c
+++ b/math/log.c
@@ -2,19 +2,7 @@
* Double-precision log(x) function.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
@@ -105,7 +93,7 @@ log (double x)
y += hi;
# endif
#endif
- return y;
+ return eval_as_double (y);
}
if (unlikely (top - 0x0010 >= 0x7ff0 - 0x0010))
{
@@ -162,7 +150,7 @@ log (double x)
+ r2 * r2 * (A[4] + r * A[5]))
+ hi;
#endif
- return y;
+ return eval_as_double (y);
}
#if USE_GLIBC_ABI
strong_alias (log, __log_finite)
diff --git a/math/log2.c b/math/log2.c
index 60c2e44..478b33d 100644
--- a/math/log2.c
+++ b/math/log2.c
@@ -2,19 +2,7 @@
* Double-precision log2(x) function.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
@@ -81,7 +69,7 @@ log2 (double x)
+ r4 * (B[6] + r * B[7] + r2 * (B[8] + r * B[9])));
y += lo;
#endif
- return y;
+ return eval_as_double (y);
}
if (unlikely (top - 0x0010 >= 0x7ff0 - 0x0010))
{
@@ -141,7 +129,7 @@ log2 (double x)
p = A[0] + r * A[1] + r2 * (A[2] + r * A[3]) + r4 * (A[4] + r * A[5]);
y = lo + r2 * p + hi;
#endif
- return y;
+ return eval_as_double (y);
}
#if USE_GLIBC_ABI
strong_alias (log2, __log2_finite)
diff --git a/math/log2_data.c b/math/log2_data.c
index d2eba89..3fc9b47 100644
--- a/math/log2_data.c
+++ b/math/log2_data.c
@@ -2,19 +2,7 @@
* Data for log2.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include "math_config.h"
diff --git a/math/log2f.c b/math/log2f.c
index f615b5f..acb629e 100644
--- a/math/log2f.c
+++ b/math/log2f.c
@@ -1,20 +1,8 @@
/*
* Single-precision log2 function.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
@@ -84,7 +72,7 @@ log2f (float x)
y = A[0] * r2 + y;
p = A[3] * r + y0;
y = y * r2 + p;
- return (float) y;
+ return eval_as_float (y);
}
#if USE_GLIBC_ABI
strong_alias (log2f, __log2f_finite)
diff --git a/math/log2f_data.c b/math/log2f_data.c
index c68c670..f3546d7 100644
--- a/math/log2f_data.c
+++ b/math/log2f_data.c
@@ -1,20 +1,8 @@
/*
* Data definition for log2f.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include "math_config.h"
diff --git a/math/log_data.c b/math/log_data.c
index 2e2e478..96a098d 100644
--- a/math/log_data.c
+++ b/math/log_data.c
@@ -2,19 +2,7 @@
* Data for log.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include "math_config.h"
diff --git a/math/logf.c b/math/logf.c
index e9e642f..9c3657b 100644
--- a/math/logf.c
+++ b/math/logf.c
@@ -1,20 +1,8 @@
/*
* Single-precision log function.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#if WANT_SINGLEPREC
@@ -87,7 +75,7 @@ logf (float x)
y = A[1] * r + A[2];
y = A[0] * r2 + y;
y = y * r2 + (y0 + r);
- return (float) y;
+ return eval_as_float (y);
}
#if USE_GLIBC_ABI
strong_alias (logf, __logf_finite)
diff --git a/math/logf_data.c b/math/logf_data.c
index 521d413..cee9271 100644
--- a/math/logf_data.c
+++ b/math/logf_data.c
@@ -1,20 +1,8 @@
/*
* Data definition for logf.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#if !WANT_SINGLEPREC
diff --git a/math/math_config.h b/math/math_config.h
index ddac41c..0af66ac 100644
--- a/math/math_config.h
+++ b/math/math_config.h
@@ -1,20 +1,8 @@
/*
* Configuration for math routines.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#ifndef _MATH_CONFIG_H
diff --git a/math/math_err.c b/math/math_err.c
index 3e5ab16..1bf9538 100644
--- a/math/math_err.c
+++ b/math/math_err.c
@@ -2,19 +2,7 @@
* Double-precision math error handling.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include "math_config.h"
@@ -37,7 +25,7 @@ with_errno (double y, int e)
NOINLINE static double
xflow (uint32_t sign, double y)
{
- y = opt_barrier_double (sign ? -y : y) * y;
+ y = eval_as_double (opt_barrier_double (sign ? -y : y) * y);
return with_errno (y, ERANGE);
}
diff --git a/math/math_errf.c b/math/math_errf.c
index d8f1abc..07154c5 100644
--- a/math/math_errf.c
+++ b/math/math_errf.c
@@ -1,20 +1,8 @@
/*
* Single-precision math error handling.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include "math_config.h"
@@ -37,7 +25,7 @@ with_errnof (float y, int e)
NOINLINE static float
xflowf (uint32_t sign, float y)
{
- y = opt_barrier_float (sign ? -y : y) * y;
+ y = eval_as_float (opt_barrier_float (sign ? -y : y) * y);
return with_errnof (y, ERANGE);
}
diff --git a/math/pow.c b/math/pow.c
index 2b77dc6..e55f159 100644
--- a/math/pow.c
+++ b/math/pow.c
@@ -2,19 +2,7 @@
* Double-precision x^y function.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
@@ -146,7 +134,7 @@ specialcase (double_t tmp, uint64_t sbits, uint64_t ki)
sbits -= 1009ull << 52;
scale = asdouble (sbits);
y = 0x1p1009 * (scale + scale * tmp);
- return check_oflow (y);
+ return check_oflow (eval_as_double (y));
}
/* k < 0, need special care in the subnormal range. */
sbits += 1022ull << 52;
@@ -173,7 +161,7 @@ specialcase (double_t tmp, uint64_t sbits, uint64_t ki)
force_eval_double (opt_barrier_double (0x1p-1022) * 0x1p-1022);
}
y = 0x1p-1022 * y;
- return check_uflow (y);
+ return check_uflow (eval_as_double (y));
}
#define SIGN_BIAS (0x800 << EXP_TABLE_BITS)
@@ -181,7 +169,7 @@ specialcase (double_t tmp, uint64_t sbits, uint64_t ki)
/* Computes sign*exp(x+xtail) where |xtail| < 2^-8/N and |xtail| <= |x|.
The sign_bias argument is SIGN_BIAS or 0 and sets the sign to -1 or 1. */
static inline double
-exp_inline (double x, double xtail, uint32_t sign_bias)
+exp_inline (double_t x, double_t xtail, uint32_t sign_bias)
{
uint32_t abstop;
uint64_t ki, idx, top, sbits;
@@ -253,7 +241,7 @@ exp_inline (double x, double xtail, uint32_t sign_bias)
scale = asdouble (sbits);
/* Note: tmp == 0 or |tmp| > 2^-200 and scale > 2^-739, so there
is no spurious underflow here even without fma. */
- return scale + scale * tmp;
+ return eval_as_double (scale + scale * tmp);
}
/* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is
diff --git a/math/pow_log_data.c b/math/pow_log_data.c
index 6d3bf5e..45569c5 100644
--- a/math/pow_log_data.c
+++ b/math/pow_log_data.c
@@ -2,19 +2,7 @@
* Data for the log part of pow.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include "math_config.h"
diff --git a/math/powf.c b/math/powf.c
index c4ea178..1149842 100644
--- a/math/powf.c
+++ b/math/powf.c
@@ -1,20 +1,8 @@
/*
* Single-precision pow function.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#if WANT_SINGLEPREC
@@ -86,7 +74,7 @@ log2_inline (uint32_t ix)
/* The output of log2 and thus the input of exp2 is either scaled by N
(in case of fast toint intrinsics) or not. The unscaled xd must be
in [-1021,1023], sign_bias sets the sign of the result. */
-static inline double_t
+static inline float
exp2_inline (double_t xd, uint32_t sign_bias)
{
uint64_t ki, ski, t;
@@ -118,7 +106,7 @@ exp2_inline (double_t xd, uint32_t sign_bias)
y = C[2] * r + 1;
y = z * r2 + y;
y = y * s;
- return y;
+ return eval_as_float (y);
}
/* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is
@@ -211,7 +199,17 @@ powf (float x, float y)
{
/* |y*log(x)| >= 126. */
if (ylogx > 0x1.fffffffd1d571p+6 * POWF_SCALE)
+ /* |x^y| > 0x1.ffffffp127. */
return __math_oflowf (sign_bias);
+ if (WANT_ROUNDING && WANT_ERRNO
+ && ylogx > 0x1.fffffffa3aae2p+6 * POWF_SCALE)
+ /* |x^y| > 0x1.fffffep127, check if we round away from 0. */
+ if ((!sign_bias
+ && eval_as_float (1.0f + opt_barrier_float (0x1p-25f)) != 1.0f)
+ || (sign_bias
+ && eval_as_float (-1.0f - opt_barrier_float (0x1p-25f))
+ != -1.0f))
+ return __math_oflowf (sign_bias);
if (ylogx <= -150.0 * POWF_SCALE)
return __math_uflowf (sign_bias);
#if WANT_ERRNO_UFLOW
@@ -219,7 +217,7 @@ powf (float x, float y)
return __math_may_uflowf (sign_bias);
#endif
}
- return (float) exp2_inline (ylogx, sign_bias);
+ return exp2_inline (ylogx, sign_bias);
}
#if USE_GLIBC_ABI
strong_alias (powf, __powf_finite)
diff --git a/math/powf_log2_data.c b/math/powf_log2_data.c
index c21406b..285d1bd 100644
--- a/math/powf_log2_data.c
+++ b/math/powf_log2_data.c
@@ -1,20 +1,8 @@
/*
* Data definition for powf.
*
- * Copyright (c) 2017, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2017-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#if !WANT_SINGLEPREC
diff --git a/math/sincosf.c b/math/sincosf.c
index 1af41f3..fb6a29d 100644
--- a/math/sincosf.c
+++ b/math/sincosf.c
@@ -2,19 +2,7 @@
* Single-precision sin/cos function.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#if WANT_SINGLEPREC
diff --git a/math/sincosf.h b/math/sincosf.h
index 395a30e..1e80fc9 100644
--- a/math/sincosf.h
+++ b/math/sincosf.h
@@ -2,19 +2,7 @@
* Header for sinf, cosf and sincosf.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#include <stdint.h>
diff --git a/math/sincosf_data.c b/math/sincosf_data.c
index 3e7e5cd..2512f37 100644
--- a/math/sincosf_data.c
+++ b/math/sincosf_data.c
@@ -2,19 +2,7 @@
* Data definition for sinf, cosf and sincosf.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#if !WANT_SINGLEPREC
diff --git a/math/sinf.c b/math/sinf.c
index 3f35923..f624cde 100644
--- a/math/sinf.c
+++ b/math/sinf.c
@@ -2,19 +2,7 @@
* Single-precision sin function.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#if WANT_SINGLEPREC
diff --git a/math/single/dunder.c b/math/single/dunder.c
index 07af6d2..faec985 100644
--- a/math/single/dunder.c
+++ b/math/single/dunder.c
@@ -1,20 +1,8 @@
/*
* dunder.c - manually provoke FP exceptions for mathlib
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
diff --git a/math/single/e_expf.c b/math/single/e_expf.c
index 9334650..739fe1d 100644
--- a/math/single/e_expf.c
+++ b/math/single/e_expf.c
@@ -1,20 +1,8 @@
/*
* e_expf.c - single-precision exp function
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
/*
diff --git a/math/single/e_logf.c b/math/single/e_logf.c
index a611ef9..aa29489 100644
--- a/math/single/e_logf.c
+++ b/math/single/e_logf.c
@@ -1,20 +1,8 @@
/*
* e_logf.c - single precision log function
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
/*
diff --git a/math/single/e_powf.c b/math/single/e_powf.c
index 1e75ea0..fa000f6 100644
--- a/math/single/e_powf.c
+++ b/math/single/e_powf.c
@@ -1,20 +1,8 @@
/*
* e_powf.c - single-precision power function
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
diff --git a/math/single/e_rem_pio2.c b/math/single/e_rem_pio2.c
index aa6876c..f0e384d 100644
--- a/math/single/e_rem_pio2.c
+++ b/math/single/e_rem_pio2.c
@@ -1,20 +1,8 @@
/*
* e_rem_pio2.c
*
- * Copyright (c) 1999-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1999-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <math.h>
diff --git a/math/single/funder.c b/math/single/funder.c
index 7779974..ef16f68 100644
--- a/math/single/funder.c
+++ b/math/single/funder.c
@@ -1,20 +1,8 @@
/*
* funder.c - manually provoke SP exceptions for mathlib
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <fenv.h>
diff --git a/math/single/ieee_status.c b/math/single/ieee_status.c
index e9f4d16..ef846f4 100644
--- a/math/single/ieee_status.c
+++ b/math/single/ieee_status.c
@@ -1,20 +1,8 @@
/*
* ieee_status.c
*
- * Copyright (c) 2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2015-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include "math_private.h"
diff --git a/math/single/math_private.h b/math/single/math_private.h
index a2fc7ae..eef997d 100644
--- a/math/single/math_private.h
+++ b/math/single/math_private.h
@@ -1,20 +1,8 @@
/*
* math_private.h
*
- * Copyright (c) 2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2015-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
/*
diff --git a/math/single/poly.c b/math/single/poly.c
index b499496..4eaf7ff 100644
--- a/math/single/poly.c
+++ b/math/single/poly.c
@@ -1,20 +1,8 @@
/*
* poly.c
*
- * Copyright (c) 1998-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1998-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
double __kernel_poly(const double *coeffs, int n, double x)
diff --git a/math/single/rredf.c b/math/single/rredf.c
index d5af534..a5c3122 100644
--- a/math/single/rredf.c
+++ b/math/single/rredf.c
@@ -1,20 +1,8 @@
/*
* rredf.c - trigonometric range reduction function
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
/*
diff --git a/math/single/rredf.h b/math/single/rredf.h
index e639105..41d3a0c 100644
--- a/math/single/rredf.h
+++ b/math/single/rredf.h
@@ -1,20 +1,8 @@
/*
* rredf.h - trigonometric range reduction function written new for RVCT 4.1
*
- * Copyright (c) 2009, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
/*
diff --git a/math/single/s_cosf.c b/math/single/s_cosf.c
index f8adad6..0e40b52 100644
--- a/math/single/s_cosf.c
+++ b/math/single/s_cosf.c
@@ -1,20 +1,8 @@
/*
* s_cosf.c - single precision cosine function
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#define COSINE
diff --git a/math/single/s_sincosf.c b/math/single/s_sincosf.c
index 4a1088d..38a8511 100644
--- a/math/single/s_sincosf.c
+++ b/math/single/s_sincosf.c
@@ -1,20 +1,8 @@
/*
* s_sincosf.c - single precision sine and cosine functions
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
/*
diff --git a/math/single/s_sinf.c b/math/single/s_sinf.c
index 1640329..ab0f628 100644
--- a/math/single/s_sinf.c
+++ b/math/single/s_sinf.c
@@ -1,20 +1,8 @@
/*
* s_sinf.c - single precision sine function
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#define SINE
diff --git a/math/single/s_tanf.c b/math/single/s_tanf.c
index 3f874a6..0e13d95 100644
--- a/math/single/s_tanf.c
+++ b/math/single/s_tanf.c
@@ -1,20 +1,8 @@
/*
* s_tanf.c - single precision tangent function
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
/*
diff --git a/test/mathbench.c b/test/mathbench.c
index a6c914e..1266d11 100644
--- a/test/mathbench.c
+++ b/test/mathbench.c
@@ -2,19 +2,7 @@
* Microbenchmark for math functions.
*
* Copyright (c) 2018, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * SPDX-License-Identifier: MIT
*/
#undef _GNU_SOURCE
diff --git a/test/mathtest.c b/test/mathtest.c
index f709aeb..f535452 100644
--- a/test/mathtest.c
+++ b/test/mathtest.c
@@ -1,20 +1,8 @@
/*
* mathtest.c - test rig for mathlib
*
- * Copyright (c) 1998-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1998-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <assert.h>
diff --git a/test/rtest/dotest.c b/test/rtest/dotest.c
index ed24bb0..f416477 100644
--- a/test/rtest/dotest.c
+++ b/test/rtest/dotest.c
@@ -1,20 +1,8 @@
/*
* dotest.c - actually generate mathlib test cases
*
- * Copyright (c) 1999-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1999-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <stdio.h>
diff --git a/test/rtest/intern.h b/test/rtest/intern.h
index ccedcb5..af574b0 100644
--- a/test/rtest/intern.h
+++ b/test/rtest/intern.h
@@ -1,20 +1,8 @@
/*
* intern.h
*
- * Copyright (c) 1999-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1999-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#ifndef mathtest_intern_h
diff --git a/test/rtest/main.c b/test/rtest/main.c
index f1dcb4f..e94e455 100644
--- a/test/rtest/main.c
+++ b/test/rtest/main.c
@@ -1,20 +1,8 @@
/*
* main.c
*
- * Copyright (c) 1999-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1999-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <assert.h>
diff --git a/test/rtest/random.c b/test/rtest/random.c
index 6b3fb95..e97a8c6 100644
--- a/test/rtest/random.c
+++ b/test/rtest/random.c
@@ -1,20 +1,8 @@
/*
* random.c - random number generator for producing mathlib test cases
*
- * Copyright (c) 1998-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1998-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include "types.h"
diff --git a/test/rtest/random.h b/test/rtest/random.h
index 7989006..c1ce956 100644
--- a/test/rtest/random.h
+++ b/test/rtest/random.h
@@ -1,20 +1,8 @@
/*
* random.h - header for random.c
*
- * Copyright (c) 2009-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2009-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include "types.h"
diff --git a/test/rtest/semi.c b/test/rtest/semi.c
index 035e45f..938dc3a 100644
--- a/test/rtest/semi.c
+++ b/test/rtest/semi.c
@@ -1,20 +1,8 @@
/*
* semi.c: test implementations of mathlib seminumerical functions
*
- * Copyright (c) 1999-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1999-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <stdio.h>
diff --git a/test/rtest/semi.h b/test/rtest/semi.h
index 3b0bc41..da473a2 100644
--- a/test/rtest/semi.h
+++ b/test/rtest/semi.h
@@ -1,20 +1,8 @@
/*
* semi.h: header for semi.c
*
- * Copyright (c) 1999-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 1999-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#ifndef test_semi_h
diff --git a/test/rtest/types.h b/test/rtest/types.h
index 7ea60ae..1a76c2e 100644
--- a/test/rtest/types.h
+++ b/test/rtest/types.h
@@ -1,20 +1,8 @@
/*
* types.h
*
- * Copyright (c) 2005-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2005-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#ifndef mathtest_types_h
diff --git a/test/rtest/wrappers.c b/test/rtest/wrappers.c
index 5f5b544..acaf671 100644
--- a/test/rtest/wrappers.c
+++ b/test/rtest/wrappers.c
@@ -1,20 +1,8 @@
/*
* wrappers.c - wrappers to modify output of MPFR/MPC test functions
*
- * Copyright (c) 2014-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2014-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
#include <assert.h>
diff --git a/test/rtest/wrappers.h b/test/rtest/wrappers.h
index c8afa75..5804935 100644
--- a/test/rtest/wrappers.h
+++ b/test/rtest/wrappers.h
@@ -1,20 +1,8 @@
/*
* wrappers.h - wrappers to modify output of MPFR/MPC test functions
*
- * Copyright (c) 2014-2015, Arm Limited.
- * SPDX-License-Identifier: Apache-2.0
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Copyright (c) 2014-2018, Arm Limited.
+ * SPDX-License-Identifier: MIT
*/
typedef struct {
diff --git a/test/testcases/directed/cosf.tst b/test/testcases/directed/cosf.tst
index 797d7a1..5dc0994 100644
--- a/test/testcases/directed/cosf.tst
+++ b/test/testcases/directed/cosf.tst
@@ -1,19 +1,7 @@
; cosf.tst - Directed test cases for SP cosine
;
-; Copyright (c) 2007-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 2007-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=cosf op1=7fc00001 result=7fc00001 errno=0
func=cosf op1=ffc00001 result=7fc00001 errno=0
diff --git a/test/testcases/directed/exp.tst b/test/testcases/directed/exp.tst
index b0e1c96..addfc0a 100644
--- a/test/testcases/directed/exp.tst
+++ b/test/testcases/directed/exp.tst
@@ -1,19 +1,7 @@
; Directed test cases for exp
;
; Copyright (c) 2018, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; SPDX-License-Identifier: MIT
func=exp op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
func=exp op1=fff80000.00000001 result=7ff80000.00000001 errno=0
diff --git a/test/testcases/directed/exp2.tst b/test/testcases/directed/exp2.tst
index 7f26a6c..04a5a50 100644
--- a/test/testcases/directed/exp2.tst
+++ b/test/testcases/directed/exp2.tst
@@ -1,19 +1,7 @@
; Directed test cases for exp2
;
; Copyright (c) 2018, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; SPDX-License-Identifier: MIT
func=exp2 op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
func=exp2 op1=fff80000.00000001 result=7ff80000.00000001 errno=0
diff --git a/test/testcases/directed/exp2f.tst b/test/testcases/directed/exp2f.tst
index 6f13b10..2b6a9b5 100644
--- a/test/testcases/directed/exp2f.tst
+++ b/test/testcases/directed/exp2f.tst
@@ -1,19 +1,7 @@
; exp2f.tst - Directed test cases for exp2f
;
-; Copyright (c) 2017, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 2017-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=exp2f op1=7fc00001 result=7fc00001 errno=0
func=exp2f op1=ffc00001 result=7fc00001 errno=0
diff --git a/test/testcases/directed/expf.tst b/test/testcases/directed/expf.tst
index 79619cb..74664c7 100644
--- a/test/testcases/directed/expf.tst
+++ b/test/testcases/directed/expf.tst
@@ -1,19 +1,7 @@
; expf.tst - Directed test cases for expf
;
-; Copyright (c) 2007-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 2007-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=expf op1=7fc00001 result=7fc00001 errno=0
func=expf op1=ffc00001 result=7fc00001 errno=0
diff --git a/test/testcases/directed/log.tst b/test/testcases/directed/log.tst
index c7e4f79..eeb762c 100644
--- a/test/testcases/directed/log.tst
+++ b/test/testcases/directed/log.tst
@@ -1,19 +1,7 @@
; Directed test cases for log
;
; Copyright (c) 2018, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; SPDX-License-Identifier: MIT
func=log op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
func=log op1=fff80000.00000001 result=7ff80000.00000001 errno=0
diff --git a/test/testcases/directed/log2.tst b/test/testcases/directed/log2.tst
index 768d1ff..e0765d8 100644
--- a/test/testcases/directed/log2.tst
+++ b/test/testcases/directed/log2.tst
@@ -1,19 +1,7 @@
; Directed test cases for log2
;
; Copyright (c) 2018, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; SPDX-License-Identifier: MIT
func=log2 op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
func=log2 op1=fff80000.00000001 result=7ff80000.00000001 errno=0
diff --git a/test/testcases/directed/log2f.tst b/test/testcases/directed/log2f.tst
index 8df5789..8d685ba 100644
--- a/test/testcases/directed/log2f.tst
+++ b/test/testcases/directed/log2f.tst
@@ -1,19 +1,7 @@
; log2f.tst - Directed test cases for log2f
;
-; Copyright (c) 2017, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 2017-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=log2f op1=7fc00001 result=7fc00001 errno=0
func=log2f op1=ffc00001 result=7fc00001 errno=0
diff --git a/test/testcases/directed/logf.tst b/test/testcases/directed/logf.tst
index 6636a26..7ccc873 100644
--- a/test/testcases/directed/logf.tst
+++ b/test/testcases/directed/logf.tst
@@ -1,19 +1,7 @@
; logf.tst - Directed test cases for logf
;
-; Copyright (c) 2007-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 2007-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=logf op1=7fc00001 result=7fc00001 errno=0
func=logf op1=ffc00001 result=7fc00001 errno=0
diff --git a/test/testcases/directed/pow.tst b/test/testcases/directed/pow.tst
index 52187b9..a4c42be 100644
--- a/test/testcases/directed/pow.tst
+++ b/test/testcases/directed/pow.tst
@@ -1,19 +1,7 @@
; Directed test cases for pow
;
; Copyright (c) 2018, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; SPDX-License-Identifier: MIT
func=pow op1=00000000.00000000 op2=00000000.00000000 result=3ff00000.00000000 errno=0
func=pow op1=00000000.00000000 op2=00000000.00000001 result=00000000.00000000 errno=0
diff --git a/test/testcases/directed/powf.tst b/test/testcases/directed/powf.tst
index 187a353..efd1dd5 100644
--- a/test/testcases/directed/powf.tst
+++ b/test/testcases/directed/powf.tst
@@ -1,19 +1,7 @@
; powf.tst - Directed test cases for powf
;
-; Copyright (c) 2007-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 2007-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=powf op1=7f800001 op2=7f800001 result=7fc00001 errno=0 status=i
func=powf op1=7f800001 op2=ff800001 result=7fc00001 errno=0 status=i
diff --git a/test/testcases/directed/rred.tst b/test/testcases/directed/rred.tst
index 3ffa148..41e4e70 100644
--- a/test/testcases/directed/rred.tst
+++ b/test/testcases/directed/rred.tst
@@ -1,19 +1,7 @@
; rred.tst
;
-; Copyright (c) 1999-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 1999-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=rred op1=40000000.00000000 result=3fdb7812.aeef4b9e.e59 res2=00000001 errno=0
func=rred op1=400fffff.ffffffff result=bfe6cbe3.f9990e95.a79 res2=00000003 errno=0
diff --git a/test/testcases/directed/rred2.tst b/test/testcases/directed/rred2.tst
index 50d0db5..558c18e 100644
--- a/test/testcases/directed/rred2.tst
+++ b/test/testcases/directed/rred2.tst
@@ -1,19 +1,7 @@
; rred2.tst
;
-; Copyright (c) 1999-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 1999-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=rred op1=4139eb71.48f354d6 result=3c8d0afa.32c646ca.18a res2=00000001 errno=0
func=rred op1=414344ba.16f4f99a result=3cc23686.da4d2965.916 res2=00000003 errno=0
diff --git a/test/testcases/directed/rred3.tst b/test/testcases/directed/rred3.tst
index 2cfd54a..8967eb2 100644
--- a/test/testcases/directed/rred3.tst
+++ b/test/testcases/directed/rred3.tst
@@ -1,19 +1,7 @@
; rred3.tst
;
-; Copyright (c) 1999-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 1999-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=rred op1=4f454f91.26ab5b7c result=bccabf68.428292b8.71a res2=00000003 errno=0
func=rred op1=4f569eab.0985179b result=bc561ece.c9c577fd.3e9 res2=00000003 errno=0
diff --git a/test/testcases/directed/rred4.tst b/test/testcases/directed/rred4.tst
index f2f32d2..1b84f45 100644
--- a/test/testcases/directed/rred4.tst
+++ b/test/testcases/directed/rred4.tst
@@ -1,19 +1,7 @@
; rred4.tst
;
-; Copyright (c) 1999-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 1999-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=rred op1=5ee8da6e.555f15d0 result=3ccad12f.2b4c25d3.eaa res2=00000001 errno=0
func=rred op1=5ef7833f.a59d0dfd result=3c919ca2.3f5c493c.c76 res2=00000003 errno=0
diff --git a/test/testcases/directed/rred5.tst b/test/testcases/directed/rred5.tst
index b4217d0..d123472 100644
--- a/test/testcases/directed/rred5.tst
+++ b/test/testcases/directed/rred5.tst
@@ -1,19 +1,7 @@
; rred5.tst
;
-; Copyright (c) 1999-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 1999-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=rred op1=6e8a55a8.e86a3a97 result=3cc88942.65ed745f.705 res2=00000001 errno=0
func=rred op1=6e8d9233.0c3288a5 result=bc97e750.acd8c3df.9e9 res2=00000003 errno=0
diff --git a/test/testcases/directed/sincosf.tst b/test/testcases/directed/sincosf.tst
index 61f1e68..b4b2526 100644
--- a/test/testcases/directed/sincosf.tst
+++ b/test/testcases/directed/sincosf.tst
@@ -1,19 +1,7 @@
; Directed test cases for SP sincos
;
; Copyright (c) 2007-2018, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; SPDX-License-Identifier: MIT
func=sincosf_sinf op1=7fc00001 result=7fc00001 errno=0
diff --git a/test/testcases/directed/sinf.tst b/test/testcases/directed/sinf.tst
index 0b4aba8..13cfdca 100644
--- a/test/testcases/directed/sinf.tst
+++ b/test/testcases/directed/sinf.tst
@@ -1,19 +1,7 @@
; sinf.tst - Directed test cases for SP sine
;
-; Copyright (c) 2007-2015, Arm Limited.
-; SPDX-License-Identifier: Apache-2.0
-;
-; Licensed under the Apache License, Version 2.0 (the "License");
-; you may not use this file except in compliance with the License.
-; You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
+; Copyright (c) 2007-2018, Arm Limited.
+; SPDX-License-Identifier: MIT
func=sinf op1=7fc00001 result=7fc00001 errno=0
diff --git a/test/testcases/random/double.tst b/test/testcases/random/double.tst
index dfa1422..4306259 100644
--- a/test/testcases/random/double.tst
+++ b/test/testcases/random/double.tst
@@ -1,19 +1,7 @@
!! double.tst - Random test case specification for DP functions
!!
-!! Copyright (c) 1999-2015, Arm Limited.
-!! SPDX-License-Identifier: Apache-2.0
-!!
-!! Licensed under the Apache License, Version 2.0 (the "License");
-!! you may not use this file except in compliance with the License.
-!! You may obtain a copy of the License at
-!!
-!! http://www.apache.org/licenses/LICENSE-2.0
-!!
-!! Unless required by applicable law or agreed to in writing, software
-!! distributed under the License is distributed on an "AS IS" BASIS,
-!! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-!! See the License for the specific language governing permissions and
-!! limitations under the License.
+!! Copyright (c) 1999-2018, Arm Limited.
+!! SPDX-License-Identifier: MIT
test rred 10000
test exp 10000
diff --git a/test/testcases/random/float.tst b/test/testcases/random/float.tst
index cff28b0..baf62b9 100644
--- a/test/testcases/random/float.tst
+++ b/test/testcases/random/float.tst
@@ -1,19 +1,7 @@
!! single.tst - Random test case specification for SP functions
!!
-!! Copyright (c) 1999-2015, Arm Limited.
-!! SPDX-License-Identifier: Apache-2.0
-!!
-!! Licensed under the Apache License, Version 2.0 (the "License");
-!! you may not use this file except in compliance with the License.
-!! You may obtain a copy of the License at
-!!
-!! http://www.apache.org/licenses/LICENSE-2.0
-!!
-!! Unless required by applicable law or agreed to in writing, software
-!! distributed under the License is distributed on an "AS IS" BASIS,
-!! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-!! See the License for the specific language governing permissions and
-!! limitations under the License.
+!! Copyright (c) 1999-2018, Arm Limited.
+!! SPDX-License-Identifier: MIT
test sinf 10000
test cosf 10000