Last change
on this file since 373 was 352, checked in by coas-nagasima, 6 years ago |
arm向けASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
326 bytes
|
Rev | Line | |
---|
[352] | 1 | #include <fenv.h>
|
---|
| 2 |
|
---|
| 3 | /* __fesetround wrapper for arch independent argument check */
|
---|
| 4 |
|
---|
| 5 | int __fesetround(int);
|
---|
| 6 |
|
---|
| 7 | int fesetround(int r)
|
---|
| 8 | {
|
---|
| 9 | if (r & ~(
|
---|
| 10 | FE_TONEAREST
|
---|
| 11 | #ifdef FE_DOWNWARD
|
---|
| 12 | |FE_DOWNWARD
|
---|
| 13 | #endif
|
---|
| 14 | #ifdef FE_UPWARD
|
---|
| 15 | |FE_UPWARD
|
---|
| 16 | #endif
|
---|
| 17 | #ifdef FE_TOWARDZERO
|
---|
| 18 | |FE_TOWARDZERO
|
---|
| 19 | #endif
|
---|
| 20 | ))
|
---|
| 21 | return -1;
|
---|
| 22 | return __fesetround(r);
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.