1*68d75effSDimitry Andric //===----- lib/fp_mode.c - Floaing-point environment mode utilities --C -*-===// 2*68d75effSDimitry Andric // 3*68d75effSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*68d75effSDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*68d75effSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*68d75effSDimitry Andric // 7*68d75effSDimitry Andric //===----------------------------------------------------------------------===// 8*68d75effSDimitry Andric // 9*68d75effSDimitry Andric // This file provides a default implementation of fp_mode.h for architectures 10*68d75effSDimitry Andric // that does not support or does not have an implementation of floating point 11*68d75effSDimitry Andric // environment mode. 12*68d75effSDimitry Andric // 13*68d75effSDimitry Andric //===----------------------------------------------------------------------===// 14*68d75effSDimitry Andric 15*68d75effSDimitry Andric #include "fp_mode.h" 16*68d75effSDimitry Andric 17*68d75effSDimitry Andric // IEEE-754 default rounding (to nearest, ties to even). 18*68d75effSDimitry Andric FE_ROUND_MODE __fe_getround() { 19*68d75effSDimitry Andric return FE_TONEAREST; 20*68d75effSDimitry Andric } 21*68d75effSDimitry Andric 22*68d75effSDimitry Andric int __fe_raise_inexact() { 23*68d75effSDimitry Andric return 0; 24*68d75effSDimitry Andric } 25