119ca79e8SShourya Goel //===-- Implementation of canonicalize function----------------------------===// 219ca79e8SShourya Goel // 319ca79e8SShourya Goel // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 419ca79e8SShourya Goel // See https://llvm.org/LICENSE.txt for license information. 519ca79e8SShourya Goel // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 619ca79e8SShourya Goel // 719ca79e8SShourya Goel //===----------------------------------------------------------------------===// 819ca79e8SShourya Goel 919ca79e8SShourya Goel #include "src/math/canonicalize.h" 1019ca79e8SShourya Goel #include "src/__support/FPUtil/BasicOperations.h" 1119ca79e8SShourya Goel #include "src/__support/common.h" 12*5ff3ff33SPetr Hosek #include "src/__support/macros/config.h" 1319ca79e8SShourya Goel 14*5ff3ff33SPetr Hosek namespace LIBC_NAMESPACE_DECL { 1519ca79e8SShourya Goel 1619ca79e8SShourya Goel LLVM_LIBC_FUNCTION(int, canonicalize, (double *cx, const double *x)) { 1719ca79e8SShourya Goel return fputil::canonicalize(*cx, *x); 1819ca79e8SShourya Goel } 1919ca79e8SShourya Goel 20*5ff3ff33SPetr Hosek } // namespace LIBC_NAMESPACE_DECL 21