diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-31 15:21:24 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-07-31 15:21:24 +0000 |
commit | dd7d7e3f138d1835d153c316f3d771e40dc641ba (patch) | |
tree | 7427232d1e9759028490f843152a83a4bbbab7db /libc/sysdeps/linux/e1 | |
parent | 89ed2cccba266f7738ceb445e4d43103c08cbe75 (diff) | |
download | uClibc-alpine-dd7d7e3f138d1835d153c316f3d771e40dc641ba.tar.bz2 uClibc-alpine-dd7d7e3f138d1835d153c316f3d771e40dc641ba.tar.xz |
Synch with trunk at rev 22997.
Basically trailing whitespaces removal, fix non standard keywords
asm -> __asm__ inline -> __inline__ and some minor changes on trunk.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/sysdeps/linux/e1')
-rw-r--r-- | libc/sysdeps/linux/e1/bits/fenv.h | 2 | ||||
-rw-r--r-- | libc/sysdeps/linux/e1/bits/fenvinline.h | 30 | ||||
-rw-r--r-- | libc/sysdeps/linux/e1/bits/kernel_stat.h | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/e1/bits/kernel_types.h | 4 | ||||
-rw-r--r-- | libc/sysdeps/linux/e1/longjmp.c | 8 | ||||
-rw-r--r-- | libc/sysdeps/linux/e1/setjmp.c | 20 |
6 files changed, 34 insertions, 34 deletions
diff --git a/libc/sysdeps/linux/e1/bits/fenv.h b/libc/sysdeps/linux/e1/bits/fenv.h index dde6aceaa..beeea3d51 100644 --- a/libc/sysdeps/linux/e1/bits/fenv.h +++ b/libc/sysdeps/linux/e1/bits/fenv.h @@ -36,7 +36,7 @@ enum #define FE_OVERFLOW FE_OVERFLOW FE_DIVBYZERO = (1 << 11), #define FE_DIVBYZERO FE_DIVBYZERO - FE_INVALID = (1 << 12) + FE_INVALID = (1 << 12) #define FE_INVALID FE_INVALID }; diff --git a/libc/sysdeps/linux/e1/bits/fenvinline.h b/libc/sysdeps/linux/e1/bits/fenvinline.h index cce266131..a16fc0fb2 100644 --- a/libc/sysdeps/linux/e1/bits/fenvinline.h +++ b/libc/sysdeps/linux/e1/bits/fenvinline.h @@ -1,4 +1,4 @@ -/* +/* Inline floating-point environment handling functions for Hyperstone e1-32X. Copyright (C) 2002-2003, George Thanos <george.thanos@gdt.gr> Yannis Mitsos <yannis.mitsos@gdt.gr> @@ -22,9 +22,9 @@ #if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_MATH_INLINES -/********************************************************** +/********************************************************** * --- A small description of the E1-16/32X FP unit. --- - * FP exceptions can be enabled and disabled through + * FP exceptions can be enabled and disabled through * <feenableexcept>, <fedisableexcept>. * * - When an enabled exception takes place a SIGFPE signal @@ -37,7 +37,7 @@ * a trap. The user can check if any exception took place after * an FP instruction by issuing an <fetestexcept> command. * User should first clear the G2 register by issuing an - * <feclearexcept> function. + * <feclearexcept> function. * The following program is a typical example of how the user * should check for exceptions that did not generate a SIGFPE * signal : @@ -49,7 +49,7 @@ * raised = fetestexcept (FE_OVERFLOW | FE_INVALID); * if (raised & FE_OVERFLOW) { ... } * if (raised & FE_INVALID) { ... } - * ... + * ... * } ***********************************************************/ @@ -92,7 +92,7 @@ /* The following functions test for accrued exceptions. * No trap is generated on an FP exception. */ -static inline feclearexcept(int __excepts) +static __inline__ feclearexcept(int __excepts) { unsigned int enabled_excepts, disabled_excepts; @@ -102,7 +102,7 @@ static inline feclearexcept(int __excepts) __asm__ __volatile__("mov %0, SR" :"=l"(enabled_excepts) - :/*no input*/ ); + :/*no input*/ ); enabled_excepts &= 0x1F00; disabled_excepts = ~enabled_excepts; @@ -123,9 +123,9 @@ static inline feclearexcept(int __excepts) /* fetestexcepts tests both for actual and accrued * excepts. You can test for an exception either after * an FP instruction or within a SIGFPE handler - */ + */ inline int fetestexcept(int __excepts) -{ +{ unsigned int G2, G2en, G2dis; unsigned int enabled_excepts, disabled_excepts; @@ -135,7 +135,7 @@ inline int fetestexcept(int __excepts) __asm__ __volatile__("mov %0, SR" :"=l"(enabled_excepts) - :/*no input*/ ); + :/*no input*/ ); enabled_excepts &= 0x1F00; disabled_excepts = ~enabled_excepts; @@ -152,7 +152,7 @@ inline int fetestexcept(int __excepts) return ( G2en | (G2dis << 8) ); } -static inline int feraiseexcept(int __excepts) +static __inline__ int feraiseexcept(int __excepts) { __asm__ __volatile__("or G2, %0" :/*no output*/ @@ -218,7 +218,7 @@ static inline int feraiseexcept(int __excepts) (__retval); \ }) -static inline int fegetexcept(int excepts) +static __inline__ int fegetexcept(int excepts) { unsigned int tmp; __asm__ __volatile__("mov %0, SR" @@ -228,7 +228,7 @@ static inline int fegetexcept(int excepts) return tmp; } -static inline int fegetenv(fenv_t *envp) +static __inline__ int fegetenv(fenv_t *envp) { __asm__ __volatile__("mov %0, SR\n\t mov %1, SR\n\t @@ -273,7 +273,7 @@ static inline int fegetenv(fenv_t *envp) :"l"( envp->actual_except ) ); \ (0); /* return 0 */ \ }) - + #define feupdateenv(envp) \ ({ \ /* Clear FRM & FTE field of SR */ \ @@ -292,7 +292,7 @@ static inline int fegetenv(fenv_t *envp) :"l"( envp->actual_except ) ); \ (0); /* return 0 */ \ }) - + #endif /* __GNUC__ && !_SOFT_FLOAT */ diff --git a/libc/sysdeps/linux/e1/bits/kernel_stat.h b/libc/sysdeps/linux/e1/bits/kernel_stat.h index 908a153d8..9be9d115d 100644 --- a/libc/sysdeps/linux/e1/bits/kernel_stat.h +++ b/libc/sysdeps/linux/e1/bits/kernel_stat.h @@ -5,8 +5,8 @@ #error bits/kernel_stat.h is for internal uClibc use only! #endif -/* This file provides whatever this particular arch's kernel thinks - * struct kernel_stat should look like... It turns out each arch has a +/* This file provides whatever this particular arch's kernel thinks + * struct kernel_stat should look like... It turns out each arch has a * different opinion on the subject... */ struct kernel_stat { diff --git a/libc/sysdeps/linux/e1/bits/kernel_types.h b/libc/sysdeps/linux/e1/bits/kernel_types.h index 513009d8f..8017d8578 100644 --- a/libc/sysdeps/linux/e1/bits/kernel_types.h +++ b/libc/sysdeps/linux/e1/bits/kernel_types.h @@ -1,6 +1,6 @@ /* Note that we use the exact same include guard #define names - * as asm/posix_types.h. This will avoid gratuitous conflicts - * with the posix_types.h kernel header, and will ensure that + * as asm/posix_types.h. This will avoid gratuitous conflicts + * with the posix_types.h kernel header, and will ensure that * our private content, and not the kernel header, will win. * -Erik */ diff --git a/libc/sysdeps/linux/e1/longjmp.c b/libc/sysdeps/linux/e1/longjmp.c index fbd5103a4..9f04e7b5c 100644 --- a/libc/sysdeps/linux/e1/longjmp.c +++ b/libc/sysdeps/linux/e1/longjmp.c @@ -12,7 +12,7 @@ #include <signal.h> #define __NR_e1newSP 224 -static inline _syscall1(int, e1newSP, unsigned long, SavedSP ) +static __inline__ _syscall1(int, e1newSP, unsigned long, SavedSP ) unsigned long jmpbuf_ptr; @@ -23,7 +23,7 @@ void longjmp(jmp_buf state, int value ) else state->__jmpbuf->ReturnValue = value; - jmpbuf_ptr = (unsigned long)state; + jmpbuf_ptr = (unsigned long)state; e1newSP(state->__jmpbuf->SavedSP); #define _state_ ((struct __jmp_buf_tag*)jmpbuf_ptr) @@ -55,9 +55,9 @@ void siglongjmp(sigjmp_buf state, int value ) else state->__jmpbuf->ReturnValue = value; - jmpbuf_ptr = (unsigned long)state; + jmpbuf_ptr = (unsigned long)state; e1newSP(state->__jmpbuf->SavedSP); - + #define _state_ ((struct __jmp_buf_tag*)jmpbuf_ptr) __asm__ __volatile__("mov L0, %0\n\t" diff --git a/libc/sysdeps/linux/e1/setjmp.c b/libc/sysdeps/linux/e1/setjmp.c index 3a3f3b7e8..bda18b13a 100644 --- a/libc/sysdeps/linux/e1/setjmp.c +++ b/libc/sysdeps/linux/e1/setjmp.c @@ -11,11 +11,11 @@ libc_hidden_proto(sigprocmask) int setjmp( jmp_buf state) { - __asm__ __volatile__( "mov %0, G3\n\t" - "mov %1, G4\n\t" - :"=l"(state->__jmpbuf->G3), - "=l"(state->__jmpbuf->G4) - :/*no input*/ + __asm__ __volatile__( "mov %0, G3\n\t" + "mov %1, G4\n\t" + :"=l"(state->__jmpbuf->G3), + "=l"(state->__jmpbuf->G4) + :/*no input*/ :"%G3", "%G4" ); __asm__ __volatile__( "setadr %0\n\t" @@ -38,11 +38,11 @@ int sigsetjmp( sigjmp_buf state , int savesigs) } else state->__mask_was_saved = 0; - __asm__ __volatile__( "mov %0, G3\n\t" - "mov %1, G4\n\t" - :"=l"(state->__jmpbuf->G3), - "=l"(state->__jmpbuf->G4) - :/*no input*/ + __asm__ __volatile__( "mov %0, G3\n\t" + "mov %1, G4\n\t" + :"=l"(state->__jmpbuf->G3), + "=l"(state->__jmpbuf->G4) + :/*no input*/ :"%G3", "%G4" ); __asm__ __volatile__( "setadr %0\n\t" |