]>
Commit | Line | Data |
---|---|---|
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 | |
14 | extern int internal_FPU_rmode( void );\r | |
15 | \r | |
16 | static INT8 rmode[] = { 1, 3, 2, 0 };\r | |
17 | \r | |
18 | int\r | |
2aa62f2b | 19 | __flt_rounds ( void )\r |
20 | {\r | |
21 | return rmode[ internal_FPU_rmode() ];\r | |
22 | }\r |