Illustrate a redirector using the example of round function from math.h.
[lldb.git] / libc / src / math / round / round.cpp
1 //===---------------------- Implementation of round -----------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #include "src/math/round/round.h"
10
11 #include "src/__support/common.h"
12
13 namespace llvm_libc {
14
15 double __round_redirector(double x);
16
17 double LLVM_LIBC_ENTRYPOINT(round)(double x) {
18   return __round_redirector(x);
19 }
20
21 } // namespace llvm_libc