132936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour/*
232936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * Copyright 2015, The Android Open Source Project
332936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour *
432936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * Licensed under the Apache License, Version 2.0 (the "License");
532936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * you may not use this file except in compliance with the License.
632936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * You may obtain a copy of the License at
732936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour *
832936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour *     http://www.apache.org/licenses/LICENSE-2.0
932936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour *
1032936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * Unless required by applicable law or agreed to in writing, software
1132936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * distributed under the License is distributed on an "AS IS" BASIS,
1232936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1332936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * See the License for the specific language governing permissions and
1432936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour * limitations under the License.
1532936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour */
1632936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour
1732936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour#include <private/bionic_asm.h>
1832936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour
1932936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le LeyzourENTRY(lrint)
2032936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour  frintX d0, d0
2132936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour  fcvtzs x0, d0
2232936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour  ret
2332936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le LeyzourEND(lrint)
2432936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour
2532936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le LeyzourENTRY(lrintf)
2632936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour  frintX s0, s0
2732936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour  fcvtzs x0, s0
2832936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour  ret
2932936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le LeyzourEND(lrintf)
3032936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour
3132936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour// sizeof(long) and sizeof(long long) are the same for aarch64
32995b813e91a5eb67a970b9f076911873bdf5dbc4Christopher FerrisALIAS_SYMBOL(llrint, lrint);
3332936c895d4407f7444c09ef4b0fd0ea532feb00Amaury Le Leyzour
34995b813e91a5eb67a970b9f076911873bdf5dbc4Christopher FerrisALIAS_SYMBOL(llrintf, lrintf);
35