blob: 83b2b2cffebd0e0703e959a882c5151ae93090b6 [file] [log] [blame]
Eric Fiselier2a58b112018-12-17 20:17:43 +00001//===----------------------------------------------------------------------===//
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
10inline long double truncate_fp(long double val) {
11 volatile long double sink = val;
12 return sink;
13}
14
15inline double truncate_fp(double val) {
16 volatile double sink = val;
17 return sink;
18}
19
20inline float truncate_fp(float val) {
21 volatile float sink = val;
22 return sink;
23}