aboutsummaryrefslogtreecommitdiff
path: root/math/include/mathlib.h
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2018-04-25 13:26:22 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2018-05-16 13:52:13 +0100
commit0d51c0453a46a76dcf3bfd1820de7e2ffbd4b751 (patch)
tree6fae0b94a9e4079295745279fad13ccc91d01c08 /math/include/mathlib.h
parent5056a5989cb535eb47b946e8e654f48ad1b3ec8f (diff)
downloadarm-optimized-routines-0d51c0453a46a76dcf3bfd1820de7e2ffbd4b751.tar.gz
Remove the ARM__ symbol prefix
Use standard math symbols so it's easy to override libm functions. The arm_math.h header is no longer necessary, user code can just use math.h, but keep a header for freestanding code.
Diffstat (limited to 'math/include/mathlib.h')
-rw-r--r--math/include/mathlib.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/math/include/mathlib.h b/math/include/mathlib.h
new file mode 100644
index 0000000..43962ab
--- /dev/null
+++ b/math/include/mathlib.h
@@ -0,0 +1,27 @@
+/*
+ * Public API.
+ *
+ * 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.
+ */
+
+float sinf(float);
+float cosf(float);
+float tanf(float);
+float expf(float);
+float exp2f(float);
+float logf(float);
+float log2f(float);
+float powf(float, float);