1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
truncate_fp(long double val)10 inline long double truncate_fp(long double val) {
11 volatile long double sink = val;
12 return sink;
13 }
14
truncate_fp(double val)15 inline double truncate_fp(double val) {
16 volatile double sink = val;
17 return sink;
18 }
19
truncate_fp(float val)20 inline float truncate_fp(float val) {
21 volatile float sink = val;
22 return sink;
23 }
24