linux-omap 2.6.39: sync with meta-texasinstruments
[openembedded.git] / recipes / eglibc / files / sh4_set_fpscr.patch
blobf3fd5c105f6f7129616ca752f2039d2cefb20f42
1 # http://sourceware.org/ml/libc-alpha/2009-12/msg00009.html
2 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565369
3 ---
4 sysdeps/sh/sh4/fpu/fpu_control.h | 8 ++++++++
5 1 file changed, 8 insertions(+)
7 --- a/sysdeps/sh/sh4/fpu/fpu_control.h
8 +++ b/sysdeps/sh/sh4/fpu/fpu_control.h
9 @@ -45,6 +45,14 @@
10 #define _FPU_GETCW(cw) __asm__ ("sts fpscr,%0" : "=r" (cw))
12 #if defined __GNUC__
13 +/* Allow the use in C++ code. */
14 +#ifdef __cplusplus
15 +extern "C" {
16 +#endif
17 +extern void __set_fpscr (unsigned long);
18 +#ifdef __cplusplus
20 +#endif /* C++ */
21 #define _FPU_SETCW(cw) __set_fpscr ((cw))
22 #else
23 #define _FPU_SETCW(cw) __asm__ ("lds %0,fpscr" : : "r" (cw))