12a58b11aSEric Fiselier //===----------------------------------------------------------------------===// 22a58b11aSEric Fiselier // 3*57b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*57b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 5*57b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 62a58b11aSEric Fiselier // 72a58b11aSEric Fiselier //===----------------------------------------------------------------------===// 82a58b11aSEric Fiselier truncate_fp(long double val)92a58b11aSEric Fiselierinline long double truncate_fp(long double val) { 102a58b11aSEric Fiselier volatile long double sink = val; 112a58b11aSEric Fiselier return sink; 122a58b11aSEric Fiselier } 132a58b11aSEric Fiselier truncate_fp(double val)142a58b11aSEric Fiselierinline double truncate_fp(double val) { 152a58b11aSEric Fiselier volatile double sink = val; 162a58b11aSEric Fiselier return sink; 172a58b11aSEric Fiselier } 182a58b11aSEric Fiselier truncate_fp(float val)192a58b11aSEric Fiselierinline float truncate_fp(float val) { 202a58b11aSEric Fiselier volatile float sink = val; 212a58b11aSEric Fiselier return sink; 222a58b11aSEric Fiselier } 23