diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:30:11 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:30:11 +0100 |
commit | 3d0d14f983b55a570b976976284df4c434af3223 (patch) | |
tree | 864f11c0ce5ee1e15acdd196018b79d0d0e2685d /arch/x86/math-emu/fpu_proto.h | |
parent | a4ec1effce83796209a0258602b0cf50026d86f2 (diff) |
x86: lindent arch/i386/math-emu
lindent these files:
errors lines of code errors/KLOC
arch/x86/math-emu/ 2236 9424 237.2
arch/x86/math-emu/ 128 8706 14.7
no other changes. No code changed:
text data bss dec hex filename
5589802 612739 3833856 10036397 9924ad vmlinux.before
5589802 612739 3833856 10036397 9924ad vmlinux.after
the intent of this patch is to ease the automated tracking of kernel
code quality - it's just much easier for us to maintain it if every file
in arch/x86 is supposed to be clean.
NOTE: it is a known problem of lindent that it causes some style damage
of its own, but it's a safe tool (well, except for the gcc array range
initializers extension), so we did the bulk of the changes via lindent,
and did the manual fixups in a followup patch.
the resulting math-emu code has been tested by Thomas Gleixner on a real
386 DX CPU as well, and it works fine.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/math-emu/fpu_proto.h')
-rw-r--r-- | arch/x86/math-emu/fpu_proto.h | 80 |
1 files changed, 42 insertions, 38 deletions
diff --git a/arch/x86/math-emu/fpu_proto.h b/arch/x86/math-emu/fpu_proto.h index 37a8a7fe7e2..0f6384102af 100644 --- a/arch/x86/math-emu/fpu_proto.h +++ b/arch/x86/math-emu/fpu_proto.h @@ -5,7 +5,7 @@ extern void FPU_illegal(void); extern void FPU_printall(void); asmlinkage void FPU_exception(int n); -extern int real_1op_NaN(FPU_REG *a); +extern int real_1op_NaN(FPU_REG * a); extern int real_2op_NaN(FPU_REG const *b, u_char tagb, int deststnr, FPU_REG const *defaultNaN); asmlinkage int arith_invalid(int deststnr); @@ -14,8 +14,8 @@ extern int set_precision_flag(int flags); asmlinkage void set_precision_flag_up(void); asmlinkage void set_precision_flag_down(void); asmlinkage int denormal_operand(void); -asmlinkage int arith_overflow(FPU_REG *dest); -asmlinkage int arith_underflow(FPU_REG *dest); +asmlinkage int arith_overflow(FPU_REG * dest); +asmlinkage int arith_underflow(FPU_REG * dest); extern void FPU_stack_overflow(void); extern void FPU_stack_underflow(void); extern void FPU_stack_underflow_i(int i); @@ -66,7 +66,7 @@ extern int FPU_Special(FPU_REG const *ptr); extern int isNaN(FPU_REG const *ptr); extern void FPU_pop(void); extern int FPU_empty_i(int stnr); -extern int FPU_stackoverflow(FPU_REG **st_new_ptr); +extern int FPU_stackoverflow(FPU_REG ** st_new_ptr); extern void FPU_copy_to_regi(FPU_REG const *r, u_char tag, int stnr); extern void FPU_copy_to_reg1(FPU_REG const *r, u_char tag); extern void FPU_copy_to_reg0(FPU_REG const *r, u_char tag); @@ -75,26 +75,28 @@ extern void FPU_triga(void); extern void FPU_trigb(void); /* get_address.c */ extern void __user *FPU_get_address(u_char FPU_modrm, unsigned long *fpu_eip, - struct address *addr, fpu_addr_modes addr_modes); + struct address *addr, + fpu_addr_modes addr_modes); extern void __user *FPU_get_address_16(u_char FPU_modrm, unsigned long *fpu_eip, - struct address *addr, fpu_addr_modes addr_modes); + struct address *addr, + fpu_addr_modes addr_modes); /* load_store.c */ extern int FPU_load_store(u_char type, fpu_addr_modes addr_modes, - void __user *data_address); + void __user * data_address); /* poly_2xm1.c */ -extern int poly_2xm1(u_char sign, FPU_REG *arg, FPU_REG *result); +extern int poly_2xm1(u_char sign, FPU_REG * arg, FPU_REG * result); /* poly_atan.c */ -extern void poly_atan(FPU_REG *st0_ptr, u_char st0_tag, FPU_REG *st1_ptr, +extern void poly_atan(FPU_REG * st0_ptr, u_char st0_tag, FPU_REG * st1_ptr, u_char st1_tag); /* poly_l2.c */ -extern void poly_l2(FPU_REG *st0_ptr, FPU_REG *st1_ptr, u_char st1_sign); -extern int poly_l2p1(u_char s0, u_char s1, FPU_REG *r0, FPU_REG *r1, - FPU_REG *d); +extern void poly_l2(FPU_REG * st0_ptr, FPU_REG * st1_ptr, u_char st1_sign); +extern int poly_l2p1(u_char s0, u_char s1, FPU_REG * r0, FPU_REG * r1, + FPU_REG * d); /* poly_sin.c */ -extern void poly_sine(FPU_REG *st0_ptr); -extern void poly_cos(FPU_REG *st0_ptr); +extern void poly_sine(FPU_REG * st0_ptr); +extern void poly_cos(FPU_REG * st0_ptr); /* poly_tan.c */ -extern void poly_tan(FPU_REG *st0_ptr); +extern void poly_tan(FPU_REG * st0_ptr); /* reg_add_sub.c */ extern int FPU_add(FPU_REG const *b, u_char tagb, int destrnr, int control_w); extern int FPU_sub(int flags, int rm, int control_w); @@ -109,32 +111,34 @@ extern void fucompp(void); /* reg_constant.c */ extern void fconst(void); /* reg_ld_str.c */ -extern int FPU_load_extended(long double __user *s, int stnr); -extern int FPU_load_double(double __user *dfloat, FPU_REG *loaded_data); -extern int FPU_load_single(float __user *single, FPU_REG *loaded_data); -extern int FPU_load_int64(long long __user *_s); -extern int FPU_load_int32(long __user *_s, FPU_REG *loaded_data); -extern int FPU_load_int16(short __user *_s, FPU_REG *loaded_data); -extern int FPU_load_bcd(u_char __user *s); -extern int FPU_store_extended(FPU_REG *st0_ptr, u_char st0_tag, - long double __user *d); -extern int FPU_store_double(FPU_REG *st0_ptr, u_char st0_tag, double __user *dfloat); -extern int FPU_store_single(FPU_REG *st0_ptr, u_char st0_tag, float __user *single); -extern int FPU_store_int64(FPU_REG *st0_ptr, u_char st0_tag, long long __user *d); -extern int FPU_store_int32(FPU_REG *st0_ptr, u_char st0_tag, long __user *d); -extern int FPU_store_int16(FPU_REG *st0_ptr, u_char st0_tag, short __user *d); -extern int FPU_store_bcd(FPU_REG *st0_ptr, u_char st0_tag, u_char __user *d); -extern int FPU_round_to_int(FPU_REG *r, u_char tag); -extern u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user *s); -extern void frstor(fpu_addr_modes addr_modes, u_char __user *data_address); -extern u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user *d); -extern void fsave(fpu_addr_modes addr_modes, u_char __user *data_address); -extern int FPU_tagof(FPU_REG *ptr); +extern int FPU_load_extended(long double __user * s, int stnr); +extern int FPU_load_double(double __user * dfloat, FPU_REG * loaded_data); +extern int FPU_load_single(float __user * single, FPU_REG * loaded_data); +extern int FPU_load_int64(long long __user * _s); +extern int FPU_load_int32(long __user * _s, FPU_REG * loaded_data); +extern int FPU_load_int16(short __user * _s, FPU_REG * loaded_data); +extern int FPU_load_bcd(u_char __user * s); +extern int FPU_store_extended(FPU_REG * st0_ptr, u_char st0_tag, + long double __user * d); +extern int FPU_store_double(FPU_REG * st0_ptr, u_char st0_tag, + double __user * dfloat); +extern int FPU_store_single(FPU_REG * st0_ptr, u_char st0_tag, + float __user * single); +extern int FPU_store_int64(FPU_REG * st0_ptr, u_char st0_tag, + long long __user * d); +extern int FPU_store_int32(FPU_REG * st0_ptr, u_char st0_tag, long __user * d); +extern int FPU_store_int16(FPU_REG * st0_ptr, u_char st0_tag, short __user * d); +extern int FPU_store_bcd(FPU_REG * st0_ptr, u_char st0_tag, u_char __user * d); +extern int FPU_round_to_int(FPU_REG * r, u_char tag); +extern u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user * s); +extern void frstor(fpu_addr_modes addr_modes, u_char __user * data_address); +extern u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user * d); +extern void fsave(fpu_addr_modes addr_modes, u_char __user * data_address); +extern int FPU_tagof(FPU_REG * ptr); /* reg_mul.c */ extern int FPU_mul(FPU_REG const *b, u_char tagb, int deststnr, int control_w); extern int FPU_div(int flags, int regrm, int control_w); /* reg_convert.c */ -extern int FPU_to_exp16(FPU_REG const *a, FPU_REG *x); +extern int FPU_to_exp16(FPU_REG const *a, FPU_REG * x); #endif /* _FPU_PROTO_H */ - |