| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: fenv.h,v 1.3 2015/12/29 16:02:37 christos Exp $ */ | | 1 | /* $NetBSD: fenv.h,v 1.4 2016/01/05 00:47:08 ozaki-r Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2015 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2015 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Christos Zoulas. | | 8 | * by Christos Zoulas. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -291,18 +291,18 @@ fedisableexcept(int __mask) | | | @@ -291,18 +291,18 @@ fedisableexcept(int __mask) |
291 | | | 291 | |
292 | static inline int | | 292 | static inline int |
293 | fegetexcept(void) | | 293 | fegetexcept(void) |
294 | { | | 294 | { |
295 | fexcept_t __fpsr; | | 295 | fexcept_t __fpsr; |
296 | | | 296 | |
297 | __get_fpsr(__fpsr); | | 297 | __get_fpsr(__fpsr); |
298 | | | 298 | |
299 | return __fpsr & FE_ALL_EXCEPT; | | 299 | return __fpsr & FE_ALL_EXCEPT; |
300 | } | | 300 | } |
301 | | | 301 | |
302 | #endif /* _NETBSD_SOURCE || _GNU_SOURCE */ | | 302 | #endif /* _NETBSD_SOURCE || _GNU_SOURCE */ |
303 | | | 303 | |
304 | #endif /* !__m68010__ && !__mcoldfire__ */ | | | |
305 | | | | |
306 | __END_DECLS | | 304 | __END_DECLS |
307 | | | 305 | |
| | | 306 | #endif /* !__m68010__ && !__mcoldfire__ */ |
| | | 307 | |
308 | #endif /* _M68K_FENV_H_ */ | | 308 | #endif /* _M68K_FENV_H_ */ |