]> git.proxmox.com Git - mirror_edk2.git/blame - StdLib/LibC/Main/x86flt_rounds.c
Add Socket Libraries.
[mirror_edk2.git] / StdLib / LibC / Main / x86flt_rounds.c
CommitLineData
2aa62f2b 1/** @file\r
2 Return the current FPU rounding mode.\r
3\r
4 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials are licensed and made available under\r
6 the terms and conditions of the BSD License that accompanies this distribution.\r
7 The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php.\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12**/\r
13\r
14extern int internal_FPU_rmode( void );\r
15\r
16static INT8 rmode[] = { 1, 3, 2, 0 };\r
17\r
18int\r
2aa62f2b 19__flt_rounds ( void )\r
20{\r
21 return rmode[ internal_FPU_rmode() ];\r
22}\r