blob: 8ffb2e272872d2b85c48f7a51c0a8612121b6e17 [file] [log] [blame]
Jake Weinstein6cd37232016-11-27 15:17:26 -05001/*
2 * Copyright 2016, Paranoid Android
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include <float.h>
18#include <private/bionic_asm.h>
19
20ENTRY(fmax)
21 vmov d0, r0, r1
22 vmov d1, r2, r3
23 vmaxnm.f64 d0, d0, d1
24 vmov r0, r1, d0
25 bx lr
26END(fmax)
27
28ENTRY(fmaxf)
29 vmov s0, r0
30 vmov s2, r1
31 vmaxnm.f32 s0, s0, s2
32 vmov r0, s0
33 bx lr
34END(fmaxf)