blob: a8dd286874674fe3515b1b6a0fa30e1617edfd78 [file] [log] [blame]
Jake Weinstein0f3d9ff2016-03-15 00:22:54 -04001/*
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 <private/bionic_asm.h>
18
19ENTRY(lround)
20 fcvtas x0, d0
21 ret
22END(lround)
23
24ENTRY(lroundf)
25 fcvtas x0, s0
26 ret
27END(lroundf)
28
29// sizeof(long) and sizeof(long long) are the same for aarch64
30ALIAS_SYMBOL(llround, lround);
31
32ALIAS_SYMBOL(llroundf, lroundf);