diff options
Diffstat (limited to 'arch/x86/math-emu')
-rw-r--r-- | arch/x86/math-emu/errors.c | 6 | ||||
-rw-r--r-- | arch/x86/math-emu/fpu_emu.h | 12 | ||||
-rw-r--r-- | arch/x86/math-emu/fpu_entry.c | 6 | ||||
-rw-r--r-- | arch/x86/math-emu/fpu_etc.c | 8 | ||||
-rw-r--r-- | arch/x86/math-emu/fpu_proto.h | 62 | ||||
-rw-r--r-- | arch/x86/math-emu/fpu_trig.c | 38 | ||||
-rw-r--r-- | arch/x86/math-emu/poly.h | 10 | ||||
-rw-r--r-- | arch/x86/math-emu/poly_2xm1.c | 2 | ||||
-rw-r--r-- | arch/x86/math-emu/poly_atan.c | 4 | ||||
-rw-r--r-- | arch/x86/math-emu/poly_l2.c | 4 | ||||
-rw-r--r-- | arch/x86/math-emu/poly_sin.c | 4 | ||||
-rw-r--r-- | arch/x86/math-emu/poly_tan.c | 2 | ||||
-rw-r--r-- | arch/x86/math-emu/reg_convert.c | 2 | ||||
-rw-r--r-- | arch/x86/math-emu/reg_ld_str.c | 42 |
14 files changed, 101 insertions, 101 deletions
diff --git a/arch/x86/math-emu/errors.c b/arch/x86/math-emu/errors.c index 7cb5bf3495b2..145b68a99516 100644 --- a/arch/x86/math-emu/errors.c +++ b/arch/x86/math-emu/errors.c | |||
@@ -374,7 +374,7 @@ asmlinkage void FPU_exception(int n) | |||
374 | 374 | ||
375 | /* Real operation attempted on a NaN. */ | 375 | /* Real operation attempted on a NaN. */ |
376 | /* Returns < 0 if the exception is unmasked */ | 376 | /* Returns < 0 if the exception is unmasked */ |
377 | int real_1op_NaN(FPU_REG * a) | 377 | int real_1op_NaN(FPU_REG *a) |
378 | { | 378 | { |
379 | int signalling, isNaN; | 379 | int signalling, isNaN; |
380 | 380 | ||
@@ -573,7 +573,7 @@ asmlinkage int denormal_operand(void) | |||
573 | } | 573 | } |
574 | } | 574 | } |
575 | 575 | ||
576 | asmlinkage int arith_overflow(FPU_REG * dest) | 576 | asmlinkage int arith_overflow(FPU_REG *dest) |
577 | { | 577 | { |
578 | int tag = TAG_Valid; | 578 | int tag = TAG_Valid; |
579 | 579 | ||
@@ -601,7 +601,7 @@ asmlinkage int arith_overflow(FPU_REG * dest) | |||
601 | 601 | ||
602 | } | 602 | } |
603 | 603 | ||
604 | asmlinkage int arith_underflow(FPU_REG * dest) | 604 | asmlinkage int arith_underflow(FPU_REG *dest) |
605 | { | 605 | { |
606 | int tag = TAG_Valid; | 606 | int tag = TAG_Valid; |
607 | 607 | ||
diff --git a/arch/x86/math-emu/fpu_emu.h b/arch/x86/math-emu/fpu_emu.h index 656dd4c04b1b..4dae511c85ad 100644 --- a/arch/x86/math-emu/fpu_emu.h +++ b/arch/x86/math-emu/fpu_emu.h | |||
@@ -122,7 +122,7 @@ struct fpu__reg { | |||
122 | 122 | ||
123 | typedef void (*FUNC) (void); | 123 | typedef void (*FUNC) (void); |
124 | typedef struct fpu__reg FPU_REG; | 124 | typedef struct fpu__reg FPU_REG; |
125 | typedef void (*FUNC_ST0) (FPU_REG * st0_ptr, u_char st0_tag); | 125 | typedef void (*FUNC_ST0) (FPU_REG *st0_ptr, u_char st0_tag); |
126 | typedef struct { | 126 | typedef struct { |
127 | u_char address_size, operand_size, segment; | 127 | u_char address_size, operand_size, segment; |
128 | } overrides; | 128 | } overrides; |
@@ -166,7 +166,7 @@ extern u_char const data_sizes_16[32]; | |||
166 | #define signpositive(a) ( (signbyte(a) & 0x80) == 0 ) | 166 | #define signpositive(a) ( (signbyte(a) & 0x80) == 0 ) |
167 | #define signnegative(a) (signbyte(a) & 0x80) | 167 | #define signnegative(a) (signbyte(a) & 0x80) |
168 | 168 | ||
169 | static inline void reg_copy(FPU_REG const *x, FPU_REG * y) | 169 | static inline void reg_copy(FPU_REG const *x, FPU_REG *y) |
170 | { | 170 | { |
171 | *(short *)&(y->exp) = *(const short *)&(x->exp); | 171 | *(short *)&(y->exp) = *(const short *)&(x->exp); |
172 | *(long long *)&(y->sigl) = *(const long long *)&(x->sigl); | 172 | *(long long *)&(y->sigl) = *(const long long *)&(x->sigl); |
@@ -187,8 +187,8 @@ static inline void reg_copy(FPU_REG const *x, FPU_REG * y) | |||
187 | /*----- Prototypes for functions written in assembler -----*/ | 187 | /*----- Prototypes for functions written in assembler -----*/ |
188 | /* extern void reg_move(FPU_REG *a, FPU_REG *b); */ | 188 | /* extern void reg_move(FPU_REG *a, FPU_REG *b); */ |
189 | 189 | ||
190 | asmlinkage int FPU_normalize(FPU_REG * x); | 190 | asmlinkage int FPU_normalize(FPU_REG *x); |
191 | asmlinkage int FPU_normalize_nuo(FPU_REG * x); | 191 | asmlinkage int FPU_normalize_nuo(FPU_REG *x); |
192 | asmlinkage int FPU_u_sub(FPU_REG const *arg1, FPU_REG const *arg2, | 192 | asmlinkage int FPU_u_sub(FPU_REG const *arg1, FPU_REG const *arg2, |
193 | FPU_REG * answ, unsigned int control_w, u_char sign, | 193 | FPU_REG * answ, unsigned int control_w, u_char sign, |
194 | int expa, int expb); | 194 | int expa, int expb); |
@@ -200,12 +200,12 @@ asmlinkage int FPU_u_div(FPU_REG const *arg1, FPU_REG const *arg2, | |||
200 | asmlinkage int FPU_u_add(FPU_REG const *arg1, FPU_REG const *arg2, | 200 | asmlinkage int FPU_u_add(FPU_REG const *arg1, FPU_REG const *arg2, |
201 | FPU_REG * answ, unsigned int control_w, u_char sign, | 201 | FPU_REG * answ, unsigned int control_w, u_char sign, |
202 | int expa, int expb); | 202 | int expa, int expb); |
203 | asmlinkage int wm_sqrt(FPU_REG * n, int dummy1, int dummy2, | 203 | asmlinkage int wm_sqrt(FPU_REG *n, int dummy1, int dummy2, |
204 | unsigned int control_w, u_char sign); | 204 | unsigned int control_w, u_char sign); |
205 | asmlinkage unsigned FPU_shrx(void *l, unsigned x); | 205 | asmlinkage unsigned FPU_shrx(void *l, unsigned x); |
206 | asmlinkage unsigned FPU_shrxs(void *v, unsigned x); | 206 | asmlinkage unsigned FPU_shrxs(void *v, unsigned x); |
207 | asmlinkage unsigned long FPU_div_small(unsigned long long *x, unsigned long y); | 207 | asmlinkage unsigned long FPU_div_small(unsigned long long *x, unsigned long y); |
208 | asmlinkage int FPU_round(FPU_REG * arg, unsigned int extent, int dummy, | 208 | asmlinkage int FPU_round(FPU_REG *arg, unsigned int extent, int dummy, |
209 | unsigned int control_w, u_char sign); | 209 | unsigned int control_w, u_char sign); |
210 | 210 | ||
211 | #ifndef MAKING_PROTO | 211 | #ifndef MAKING_PROTO |
diff --git a/arch/x86/math-emu/fpu_entry.c b/arch/x86/math-emu/fpu_entry.c index cbb8717f09fd..377c60dfa2f0 100644 --- a/arch/x86/math-emu/fpu_entry.c +++ b/arch/x86/math-emu/fpu_entry.c | |||
@@ -126,7 +126,7 @@ static u_char const type_table[64] = { | |||
126 | u_char emulating = 0; | 126 | u_char emulating = 0; |
127 | #endif /* RE_ENTRANT_CHECKING */ | 127 | #endif /* RE_ENTRANT_CHECKING */ |
128 | 128 | ||
129 | static int valid_prefix(u_char * Byte, u_char __user ** fpu_eip, | 129 | static int valid_prefix(u_char *Byte, u_char __user ** fpu_eip, |
130 | overrides * override); | 130 | overrides * override); |
131 | 131 | ||
132 | asmlinkage void math_emulate(long arg) | 132 | asmlinkage void math_emulate(long arg) |
@@ -580,7 +580,7 @@ asmlinkage void math_emulate(long arg) | |||
580 | all prefix bytes, further changes are needed in the emulator code | 580 | all prefix bytes, further changes are needed in the emulator code |
581 | which accesses user address space. Access to separate segments is | 581 | which accesses user address space. Access to separate segments is |
582 | important for msdos emulation. */ | 582 | important for msdos emulation. */ |
583 | static int valid_prefix(u_char * Byte, u_char __user ** fpu_eip, | 583 | static int valid_prefix(u_char *Byte, u_char __user **fpu_eip, |
584 | overrides * override) | 584 | overrides * override) |
585 | { | 585 | { |
586 | u_char byte; | 586 | u_char byte; |
@@ -673,7 +673,7 @@ void math_abort(struct info *info, unsigned int signal) | |||
673 | #define sstatus_word() \ | 673 | #define sstatus_word() \ |
674 | ((S387->swd & ~SW_Top & 0xffff) | ((S387->ftop << SW_Top_Shift) & SW_Top)) | 674 | ((S387->swd & ~SW_Top & 0xffff) | ((S387->ftop << SW_Top_Shift) & SW_Top)) |
675 | 675 | ||
676 | int restore_i387_soft(void *s387, struct _fpstate __user * buf) | 676 | int restore_i387_soft(void *s387, struct _fpstate __user *buf) |
677 | { | 677 | { |
678 | u_char __user *d = (u_char __user *) buf; | 678 | u_char __user *d = (u_char __user *) buf; |
679 | int offset, other, i, tags, regnr, tag, newtop; | 679 | int offset, other, i, tags, regnr, tag, newtop; |
diff --git a/arch/x86/math-emu/fpu_etc.c b/arch/x86/math-emu/fpu_etc.c index e73631e0cde9..233e5af566f5 100644 --- a/arch/x86/math-emu/fpu_etc.c +++ b/arch/x86/math-emu/fpu_etc.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include "status_w.h" | 16 | #include "status_w.h" |
17 | #include "reg_constant.h" | 17 | #include "reg_constant.h" |
18 | 18 | ||
19 | static void fchs(FPU_REG * st0_ptr, u_char st0tag) | 19 | static void fchs(FPU_REG *st0_ptr, u_char st0tag) |
20 | { | 20 | { |
21 | if (st0tag ^ TAG_Empty) { | 21 | if (st0tag ^ TAG_Empty) { |
22 | signbyte(st0_ptr) ^= SIGN_NEG; | 22 | signbyte(st0_ptr) ^= SIGN_NEG; |
@@ -25,7 +25,7 @@ static void fchs(FPU_REG * st0_ptr, u_char st0tag) | |||
25 | FPU_stack_underflow(); | 25 | FPU_stack_underflow(); |
26 | } | 26 | } |
27 | 27 | ||
28 | static void fabs(FPU_REG * st0_ptr, u_char st0tag) | 28 | static void fabs(FPU_REG *st0_ptr, u_char st0tag) |
29 | { | 29 | { |
30 | if (st0tag ^ TAG_Empty) { | 30 | if (st0tag ^ TAG_Empty) { |
31 | setpositive(st0_ptr); | 31 | setpositive(st0_ptr); |
@@ -34,7 +34,7 @@ static void fabs(FPU_REG * st0_ptr, u_char st0tag) | |||
34 | FPU_stack_underflow(); | 34 | FPU_stack_underflow(); |
35 | } | 35 | } |
36 | 36 | ||
37 | static void ftst_(FPU_REG * st0_ptr, u_char st0tag) | 37 | static void ftst_(FPU_REG *st0_ptr, u_char st0tag) |
38 | { | 38 | { |
39 | switch (st0tag) { | 39 | switch (st0tag) { |
40 | case TAG_Zero: | 40 | case TAG_Zero: |
@@ -85,7 +85,7 @@ static void ftst_(FPU_REG * st0_ptr, u_char st0tag) | |||
85 | } | 85 | } |
86 | } | 86 | } |
87 | 87 | ||
88 | static void fxam(FPU_REG * st0_ptr, u_char st0tag) | 88 | static void fxam(FPU_REG *st0_ptr, u_char st0tag) |
89 | { | 89 | { |
90 | int c = 0; | 90 | int c = 0; |
91 | switch (st0tag) { | 91 | switch (st0tag) { |
diff --git a/arch/x86/math-emu/fpu_proto.h b/arch/x86/math-emu/fpu_proto.h index 0f6384102afd..aa49b6a0d850 100644 --- a/arch/x86/math-emu/fpu_proto.h +++ b/arch/x86/math-emu/fpu_proto.h | |||
@@ -5,7 +5,7 @@ | |||
5 | extern void FPU_illegal(void); | 5 | extern void FPU_illegal(void); |
6 | extern void FPU_printall(void); | 6 | extern void FPU_printall(void); |
7 | asmlinkage void FPU_exception(int n); | 7 | asmlinkage void FPU_exception(int n); |
8 | extern int real_1op_NaN(FPU_REG * a); | 8 | extern int real_1op_NaN(FPU_REG *a); |
9 | extern int real_2op_NaN(FPU_REG const *b, u_char tagb, int deststnr, | 9 | extern int real_2op_NaN(FPU_REG const *b, u_char tagb, int deststnr, |
10 | FPU_REG const *defaultNaN); | 10 | FPU_REG const *defaultNaN); |
11 | asmlinkage int arith_invalid(int deststnr); | 11 | asmlinkage int arith_invalid(int deststnr); |
@@ -14,8 +14,8 @@ extern int set_precision_flag(int flags); | |||
14 | asmlinkage void set_precision_flag_up(void); | 14 | asmlinkage void set_precision_flag_up(void); |
15 | asmlinkage void set_precision_flag_down(void); | 15 | asmlinkage void set_precision_flag_down(void); |
16 | asmlinkage int denormal_operand(void); | 16 | asmlinkage int denormal_operand(void); |
17 | asmlinkage int arith_overflow(FPU_REG * dest); | 17 | asmlinkage int arith_overflow(FPU_REG *dest); |
18 | asmlinkage int arith_underflow(FPU_REG * dest); | 18 | asmlinkage int arith_underflow(FPU_REG *dest); |
19 | extern void FPU_stack_overflow(void); | 19 | extern void FPU_stack_overflow(void); |
20 | extern void FPU_stack_underflow(void); | 20 | extern void FPU_stack_underflow(void); |
21 | extern void FPU_stack_underflow_i(int i); | 21 | extern void FPU_stack_underflow_i(int i); |
@@ -84,19 +84,19 @@ extern void __user *FPU_get_address_16(u_char FPU_modrm, unsigned long *fpu_eip, | |||
84 | extern int FPU_load_store(u_char type, fpu_addr_modes addr_modes, | 84 | extern int FPU_load_store(u_char type, fpu_addr_modes addr_modes, |
85 | void __user * data_address); | 85 | void __user * data_address); |
86 | /* poly_2xm1.c */ | 86 | /* poly_2xm1.c */ |
87 | extern int poly_2xm1(u_char sign, FPU_REG * arg, FPU_REG * result); | 87 | extern int poly_2xm1(u_char sign, FPU_REG * arg, FPU_REG *result); |
88 | /* poly_atan.c */ | 88 | /* poly_atan.c */ |
89 | extern void poly_atan(FPU_REG * st0_ptr, u_char st0_tag, FPU_REG * st1_ptr, | 89 | extern void poly_atan(FPU_REG * st0_ptr, u_char st0_tag, FPU_REG *st1_ptr, |
90 | u_char st1_tag); | 90 | u_char st1_tag); |
91 | /* poly_l2.c */ | 91 | /* poly_l2.c */ |
92 | extern void poly_l2(FPU_REG * st0_ptr, FPU_REG * st1_ptr, u_char st1_sign); | 92 | extern void poly_l2(FPU_REG *st0_ptr, FPU_REG *st1_ptr, u_char st1_sign); |
93 | extern int poly_l2p1(u_char s0, u_char s1, FPU_REG * r0, FPU_REG * r1, | 93 | extern int poly_l2p1(u_char s0, u_char s1, FPU_REG *r0, FPU_REG *r1, |
94 | FPU_REG * d); | 94 | FPU_REG * d); |
95 | /* poly_sin.c */ | 95 | /* poly_sin.c */ |
96 | extern void poly_sine(FPU_REG * st0_ptr); | 96 | extern void poly_sine(FPU_REG *st0_ptr); |
97 | extern void poly_cos(FPU_REG * st0_ptr); | 97 | extern void poly_cos(FPU_REG *st0_ptr); |
98 | /* poly_tan.c */ | 98 | /* poly_tan.c */ |
99 | extern void poly_tan(FPU_REG * st0_ptr); | 99 | extern void poly_tan(FPU_REG *st0_ptr); |
100 | /* reg_add_sub.c */ | 100 | /* reg_add_sub.c */ |
101 | extern int FPU_add(FPU_REG const *b, u_char tagb, int destrnr, int control_w); | 101 | extern int FPU_add(FPU_REG const *b, u_char tagb, int destrnr, int control_w); |
102 | extern int FPU_sub(int flags, int rm, int control_w); | 102 | extern int FPU_sub(int flags, int rm, int control_w); |
@@ -111,34 +111,34 @@ extern void fucompp(void); | |||
111 | /* reg_constant.c */ | 111 | /* reg_constant.c */ |
112 | extern void fconst(void); | 112 | extern void fconst(void); |
113 | /* reg_ld_str.c */ | 113 | /* reg_ld_str.c */ |
114 | extern int FPU_load_extended(long double __user * s, int stnr); | 114 | extern int FPU_load_extended(long double __user *s, int stnr); |
115 | extern int FPU_load_double(double __user * dfloat, FPU_REG * loaded_data); | 115 | extern int FPU_load_double(double __user *dfloat, FPU_REG *loaded_data); |
116 | extern int FPU_load_single(float __user * single, FPU_REG * loaded_data); | 116 | extern int FPU_load_single(float __user *single, FPU_REG *loaded_data); |
117 | extern int FPU_load_int64(long long __user * _s); | 117 | extern int FPU_load_int64(long long __user *_s); |
118 | extern int FPU_load_int32(long __user * _s, FPU_REG * loaded_data); | 118 | extern int FPU_load_int32(long __user *_s, FPU_REG *loaded_data); |
119 | extern int FPU_load_int16(short __user * _s, FPU_REG * loaded_data); | 119 | extern int FPU_load_int16(short __user *_s, FPU_REG *loaded_data); |
120 | extern int FPU_load_bcd(u_char __user * s); | 120 | extern int FPU_load_bcd(u_char __user *s); |
121 | extern int FPU_store_extended(FPU_REG * st0_ptr, u_char st0_tag, | 121 | extern int FPU_store_extended(FPU_REG *st0_ptr, u_char st0_tag, |
122 | long double __user * d); | 122 | long double __user * d); |
123 | extern int FPU_store_double(FPU_REG * st0_ptr, u_char st0_tag, | 123 | extern int FPU_store_double(FPU_REG *st0_ptr, u_char st0_tag, |
124 | double __user * dfloat); | 124 | double __user * dfloat); |
125 | extern int FPU_store_single(FPU_REG * st0_ptr, u_char st0_tag, | 125 | extern int FPU_store_single(FPU_REG *st0_ptr, u_char st0_tag, |
126 | float __user * single); | 126 | float __user * single); |
127 | extern int FPU_store_int64(FPU_REG * st0_ptr, u_char st0_tag, | 127 | extern int FPU_store_int64(FPU_REG *st0_ptr, u_char st0_tag, |
128 | long long __user * d); | 128 | long long __user * d); |
129 | extern int FPU_store_int32(FPU_REG * st0_ptr, u_char st0_tag, long __user * d); | 129 | extern int FPU_store_int32(FPU_REG *st0_ptr, u_char st0_tag, long __user *d); |
130 | extern int FPU_store_int16(FPU_REG * st0_ptr, u_char st0_tag, short __user * d); | 130 | extern int FPU_store_int16(FPU_REG *st0_ptr, u_char st0_tag, short __user *d); |
131 | extern int FPU_store_bcd(FPU_REG * st0_ptr, u_char st0_tag, u_char __user * d); | 131 | extern int FPU_store_bcd(FPU_REG *st0_ptr, u_char st0_tag, u_char __user *d); |
132 | extern int FPU_round_to_int(FPU_REG * r, u_char tag); | 132 | extern int FPU_round_to_int(FPU_REG *r, u_char tag); |
133 | extern u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user * s); | 133 | extern u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user *s); |
134 | extern void frstor(fpu_addr_modes addr_modes, u_char __user * data_address); | 134 | extern void frstor(fpu_addr_modes addr_modes, u_char __user *data_address); |
135 | extern u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user * d); | 135 | extern u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user *d); |
136 | extern void fsave(fpu_addr_modes addr_modes, u_char __user * data_address); | 136 | extern void fsave(fpu_addr_modes addr_modes, u_char __user *data_address); |
137 | extern int FPU_tagof(FPU_REG * ptr); | 137 | extern int FPU_tagof(FPU_REG *ptr); |
138 | /* reg_mul.c */ | 138 | /* reg_mul.c */ |
139 | extern int FPU_mul(FPU_REG const *b, u_char tagb, int deststnr, int control_w); | 139 | extern int FPU_mul(FPU_REG const *b, u_char tagb, int deststnr, int control_w); |
140 | 140 | ||
141 | extern int FPU_div(int flags, int regrm, int control_w); | 141 | extern int FPU_div(int flags, int regrm, int control_w); |
142 | /* reg_convert.c */ | 142 | /* reg_convert.c */ |
143 | extern int FPU_to_exp16(FPU_REG const *a, FPU_REG * x); | 143 | extern int FPU_to_exp16(FPU_REG const *a, FPU_REG *x); |
144 | #endif /* _FPU_PROTO_H */ | 144 | #endif /* _FPU_PROTO_H */ |
diff --git a/arch/x86/math-emu/fpu_trig.c b/arch/x86/math-emu/fpu_trig.c index e5316a288a6e..ecd06680581c 100644 --- a/arch/x86/math-emu/fpu_trig.c +++ b/arch/x86/math-emu/fpu_trig.c | |||
@@ -30,7 +30,7 @@ static void rem_kernel(unsigned long long st0, unsigned long long *y, | |||
30 | /* Limited measurements show no results worse than 64 bit precision | 30 | /* Limited measurements show no results worse than 64 bit precision |
31 | except for the results for arguments close to 2^63, where the | 31 | except for the results for arguments close to 2^63, where the |
32 | precision of the result sometimes degrades to about 63.9 bits */ | 32 | precision of the result sometimes degrades to about 63.9 bits */ |
33 | static int trig_arg(FPU_REG * st0_ptr, int even) | 33 | static int trig_arg(FPU_REG *st0_ptr, int even) |
34 | { | 34 | { |
35 | FPU_REG tmp; | 35 | FPU_REG tmp; |
36 | u_char tmptag; | 36 | u_char tmptag; |
@@ -176,7 +176,7 @@ static void convert_l2reg(long const *arg, int deststnr) | |||
176 | return; | 176 | return; |
177 | } | 177 | } |
178 | 178 | ||
179 | static void single_arg_error(FPU_REG * st0_ptr, u_char st0_tag) | 179 | static void single_arg_error(FPU_REG *st0_ptr, u_char st0_tag) |
180 | { | 180 | { |
181 | if (st0_tag == TAG_Empty) | 181 | if (st0_tag == TAG_Empty) |
182 | FPU_stack_underflow(); /* Puts a QNaN in st(0) */ | 182 | FPU_stack_underflow(); /* Puts a QNaN in st(0) */ |
@@ -188,7 +188,7 @@ static void single_arg_error(FPU_REG * st0_ptr, u_char st0_tag) | |||
188 | #endif /* PARANOID */ | 188 | #endif /* PARANOID */ |
189 | } | 189 | } |
190 | 190 | ||
191 | static void single_arg_2_error(FPU_REG * st0_ptr, u_char st0_tag) | 191 | static void single_arg_2_error(FPU_REG *st0_ptr, u_char st0_tag) |
192 | { | 192 | { |
193 | int isNaN; | 193 | int isNaN; |
194 | 194 | ||
@@ -229,7 +229,7 @@ static void single_arg_2_error(FPU_REG * st0_ptr, u_char st0_tag) | |||
229 | 229 | ||
230 | /*---------------------------------------------------------------------------*/ | 230 | /*---------------------------------------------------------------------------*/ |
231 | 231 | ||
232 | static void f2xm1(FPU_REG * st0_ptr, u_char tag) | 232 | static void f2xm1(FPU_REG *st0_ptr, u_char tag) |
233 | { | 233 | { |
234 | FPU_REG a; | 234 | FPU_REG a; |
235 | 235 | ||
@@ -272,7 +272,7 @@ static void f2xm1(FPU_REG * st0_ptr, u_char tag) | |||
272 | } | 272 | } |
273 | } | 273 | } |
274 | 274 | ||
275 | static void fptan(FPU_REG * st0_ptr, u_char st0_tag) | 275 | static void fptan(FPU_REG *st0_ptr, u_char st0_tag) |
276 | { | 276 | { |
277 | FPU_REG *st_new_ptr; | 277 | FPU_REG *st_new_ptr; |
278 | int q; | 278 | int q; |
@@ -351,7 +351,7 @@ static void fptan(FPU_REG * st0_ptr, u_char st0_tag) | |||
351 | single_arg_2_error(st0_ptr, st0_tag); | 351 | single_arg_2_error(st0_ptr, st0_tag); |
352 | } | 352 | } |
353 | 353 | ||
354 | static void fxtract(FPU_REG * st0_ptr, u_char st0_tag) | 354 | static void fxtract(FPU_REG *st0_ptr, u_char st0_tag) |
355 | { | 355 | { |
356 | FPU_REG *st_new_ptr; | 356 | FPU_REG *st_new_ptr; |
357 | u_char sign; | 357 | u_char sign; |
@@ -444,7 +444,7 @@ static void fincstp(void) | |||
444 | top++; | 444 | top++; |
445 | } | 445 | } |
446 | 446 | ||
447 | static void fsqrt_(FPU_REG * st0_ptr, u_char st0_tag) | 447 | static void fsqrt_(FPU_REG *st0_ptr, u_char st0_tag) |
448 | { | 448 | { |
449 | int expon; | 449 | int expon; |
450 | 450 | ||
@@ -502,7 +502,7 @@ static void fsqrt_(FPU_REG * st0_ptr, u_char st0_tag) | |||
502 | 502 | ||
503 | } | 503 | } |
504 | 504 | ||
505 | static void frndint_(FPU_REG * st0_ptr, u_char st0_tag) | 505 | static void frndint_(FPU_REG *st0_ptr, u_char st0_tag) |
506 | { | 506 | { |
507 | int flags, tag; | 507 | int flags, tag; |
508 | 508 | ||
@@ -546,7 +546,7 @@ static void frndint_(FPU_REG * st0_ptr, u_char st0_tag) | |||
546 | single_arg_error(st0_ptr, st0_tag); | 546 | single_arg_error(st0_ptr, st0_tag); |
547 | } | 547 | } |
548 | 548 | ||
549 | static int fsin(FPU_REG * st0_ptr, u_char tag) | 549 | static int fsin(FPU_REG *st0_ptr, u_char tag) |
550 | { | 550 | { |
551 | u_char arg_sign = getsign(st0_ptr); | 551 | u_char arg_sign = getsign(st0_ptr); |
552 | 552 | ||
@@ -607,7 +607,7 @@ static int fsin(FPU_REG * st0_ptr, u_char tag) | |||
607 | } | 607 | } |
608 | } | 608 | } |
609 | 609 | ||
610 | static int f_cos(FPU_REG * st0_ptr, u_char tag) | 610 | static int f_cos(FPU_REG *st0_ptr, u_char tag) |
611 | { | 611 | { |
612 | u_char st0_sign; | 612 | u_char st0_sign; |
613 | 613 | ||
@@ -677,12 +677,12 @@ static int f_cos(FPU_REG * st0_ptr, u_char tag) | |||
677 | } | 677 | } |
678 | } | 678 | } |
679 | 679 | ||
680 | static void fcos(FPU_REG * st0_ptr, u_char st0_tag) | 680 | static void fcos(FPU_REG *st0_ptr, u_char st0_tag) |
681 | { | 681 | { |
682 | f_cos(st0_ptr, st0_tag); | 682 | f_cos(st0_ptr, st0_tag); |
683 | } | 683 | } |
684 | 684 | ||
685 | static void fsincos(FPU_REG * st0_ptr, u_char st0_tag) | 685 | static void fsincos(FPU_REG *st0_ptr, u_char st0_tag) |
686 | { | 686 | { |
687 | FPU_REG *st_new_ptr; | 687 | FPU_REG *st_new_ptr; |
688 | FPU_REG arg; | 688 | FPU_REG arg; |
@@ -775,7 +775,7 @@ static void rem_kernel(unsigned long long st0, unsigned long long *y, | |||
775 | /* Remainder of st(0) / st(1) */ | 775 | /* Remainder of st(0) / st(1) */ |
776 | /* This routine produces exact results, i.e. there is never any | 776 | /* This routine produces exact results, i.e. there is never any |
777 | rounding or truncation, etc of the result. */ | 777 | rounding or truncation, etc of the result. */ |
778 | static void do_fprem(FPU_REG * st0_ptr, u_char st0_tag, int round) | 778 | static void do_fprem(FPU_REG *st0_ptr, u_char st0_tag, int round) |
779 | { | 779 | { |
780 | FPU_REG *st1_ptr = &st(1); | 780 | FPU_REG *st1_ptr = &st(1); |
781 | u_char st1_tag = FPU_gettagi(1); | 781 | u_char st1_tag = FPU_gettagi(1); |
@@ -1017,7 +1017,7 @@ static void do_fprem(FPU_REG * st0_ptr, u_char st0_tag, int round) | |||
1017 | } | 1017 | } |
1018 | 1018 | ||
1019 | /* ST(1) <- ST(1) * log ST; pop ST */ | 1019 | /* ST(1) <- ST(1) * log ST; pop ST */ |
1020 | static void fyl2x(FPU_REG * st0_ptr, u_char st0_tag) | 1020 | static void fyl2x(FPU_REG *st0_ptr, u_char st0_tag) |
1021 | { | 1021 | { |
1022 | FPU_REG *st1_ptr = &st(1), exponent; | 1022 | FPU_REG *st1_ptr = &st(1), exponent; |
1023 | u_char st1_tag = FPU_gettagi(1); | 1023 | u_char st1_tag = FPU_gettagi(1); |
@@ -1188,7 +1188,7 @@ static void fyl2x(FPU_REG * st0_ptr, u_char st0_tag) | |||
1188 | FPU_pop(); | 1188 | FPU_pop(); |
1189 | } | 1189 | } |
1190 | 1190 | ||
1191 | static void fpatan(FPU_REG * st0_ptr, u_char st0_tag) | 1191 | static void fpatan(FPU_REG *st0_ptr, u_char st0_tag) |
1192 | { | 1192 | { |
1193 | FPU_REG *st1_ptr = &st(1); | 1193 | FPU_REG *st1_ptr = &st(1); |
1194 | u_char st1_tag = FPU_gettagi(1); | 1194 | u_char st1_tag = FPU_gettagi(1); |
@@ -1298,17 +1298,17 @@ static void fpatan(FPU_REG * st0_ptr, u_char st0_tag) | |||
1298 | set_precision_flag_up(); /* We do not really know if up or down */ | 1298 | set_precision_flag_up(); /* We do not really know if up or down */ |
1299 | } | 1299 | } |
1300 | 1300 | ||
1301 | static void fprem(FPU_REG * st0_ptr, u_char st0_tag) | 1301 | static void fprem(FPU_REG *st0_ptr, u_char st0_tag) |
1302 | { | 1302 | { |
1303 | do_fprem(st0_ptr, st0_tag, RC_CHOP); | 1303 | do_fprem(st0_ptr, st0_tag, RC_CHOP); |
1304 | } | 1304 | } |
1305 | 1305 | ||
1306 | static void fprem1(FPU_REG * st0_ptr, u_char st0_tag) | 1306 | static void fprem1(FPU_REG *st0_ptr, u_char st0_tag) |
1307 | { | 1307 | { |
1308 | do_fprem(st0_ptr, st0_tag, RC_RND); | 1308 | do_fprem(st0_ptr, st0_tag, RC_RND); |
1309 | } | 1309 | } |
1310 | 1310 | ||
1311 | static void fyl2xp1(FPU_REG * st0_ptr, u_char st0_tag) | 1311 | static void fyl2xp1(FPU_REG *st0_ptr, u_char st0_tag) |
1312 | { | 1312 | { |
1313 | u_char sign, sign1; | 1313 | u_char sign, sign1; |
1314 | FPU_REG *st1_ptr = &st(1), a, b; | 1314 | FPU_REG *st1_ptr = &st(1), a, b; |
@@ -1477,7 +1477,7 @@ static void fyl2xp1(FPU_REG * st0_ptr, u_char st0_tag) | |||
1477 | 1477 | ||
1478 | } | 1478 | } |
1479 | 1479 | ||
1480 | static void fscale(FPU_REG * st0_ptr, u_char st0_tag) | 1480 | static void fscale(FPU_REG *st0_ptr, u_char st0_tag) |
1481 | { | 1481 | { |
1482 | FPU_REG *st1_ptr = &st(1); | 1482 | FPU_REG *st1_ptr = &st(1); |
1483 | u_char st1_tag = FPU_gettagi(1); | 1483 | u_char st1_tag = FPU_gettagi(1); |
diff --git a/arch/x86/math-emu/poly.h b/arch/x86/math-emu/poly.h index f317de7d8864..168eb44c93c8 100644 --- a/arch/x86/math-emu/poly.h +++ b/arch/x86/math-emu/poly.h | |||
@@ -33,12 +33,12 @@ asmlinkage void polynomial_Xsig(Xsig *, const unsigned long long *x, | |||
33 | 33 | ||
34 | asmlinkage void mul32_Xsig(Xsig *, const unsigned long mult); | 34 | asmlinkage void mul32_Xsig(Xsig *, const unsigned long mult); |
35 | asmlinkage void mul64_Xsig(Xsig *, const unsigned long long *mult); | 35 | asmlinkage void mul64_Xsig(Xsig *, const unsigned long long *mult); |
36 | asmlinkage void mul_Xsig_Xsig(Xsig * dest, const Xsig * mult); | 36 | asmlinkage void mul_Xsig_Xsig(Xsig *dest, const Xsig *mult); |
37 | 37 | ||
38 | asmlinkage void shr_Xsig(Xsig *, const int n); | 38 | asmlinkage void shr_Xsig(Xsig *, const int n); |
39 | asmlinkage int round_Xsig(Xsig *); | 39 | asmlinkage int round_Xsig(Xsig *); |
40 | asmlinkage int norm_Xsig(Xsig *); | 40 | asmlinkage int norm_Xsig(Xsig *); |
41 | asmlinkage void div_Xsig(Xsig * x1, const Xsig * x2, const Xsig * dest); | 41 | asmlinkage void div_Xsig(Xsig *x1, const Xsig *x2, const Xsig *dest); |
42 | 42 | ||
43 | /* Macro to extract the most significant 32 bits from a long long */ | 43 | /* Macro to extract the most significant 32 bits from a long long */ |
44 | #define LL_MSW(x) (((unsigned long *)&x)[1]) | 44 | #define LL_MSW(x) (((unsigned long *)&x)[1]) |
@@ -70,7 +70,7 @@ static inline unsigned long mul_32_32(const unsigned long arg1, | |||
70 | } | 70 | } |
71 | 71 | ||
72 | /* Add the 12 byte Xsig x2 to Xsig dest, with no checks for overflow. */ | 72 | /* Add the 12 byte Xsig x2 to Xsig dest, with no checks for overflow. */ |
73 | static inline void add_Xsig_Xsig(Xsig * dest, const Xsig * x2) | 73 | static inline void add_Xsig_Xsig(Xsig *dest, const Xsig *x2) |
74 | { | 74 | { |
75 | asm volatile ("movl %1,%%edi; movl %2,%%esi;\n" | 75 | asm volatile ("movl %1,%%edi; movl %2,%%esi;\n" |
76 | "movl (%%esi),%%eax; addl %%eax,(%%edi);\n" | 76 | "movl (%%esi),%%eax; addl %%eax,(%%edi);\n" |
@@ -84,7 +84,7 @@ static inline void add_Xsig_Xsig(Xsig * dest, const Xsig * x2) | |||
84 | /* Note: the constraints in the asm statement didn't always work properly | 84 | /* Note: the constraints in the asm statement didn't always work properly |
85 | with gcc 2.5.8. Changing from using edi to using ecx got around the | 85 | with gcc 2.5.8. Changing from using edi to using ecx got around the |
86 | problem, but keep fingers crossed! */ | 86 | problem, but keep fingers crossed! */ |
87 | static inline void add_two_Xsig(Xsig * dest, const Xsig * x2, long int *exp) | 87 | static inline void add_two_Xsig(Xsig *dest, const Xsig *x2, long int *exp) |
88 | { | 88 | { |
89 | asm volatile ("movl %2,%%ecx; movl %3,%%esi;\n" | 89 | asm volatile ("movl %2,%%ecx; movl %3,%%esi;\n" |
90 | "movl (%%esi),%%eax; addl %%eax,(%%ecx);\n" | 90 | "movl (%%esi),%%eax; addl %%eax,(%%ecx);\n" |
@@ -101,7 +101,7 @@ static inline void add_two_Xsig(Xsig * dest, const Xsig * x2, long int *exp) | |||
101 | 101 | ||
102 | /* Negate (subtract from 1.0) the 12 byte Xsig */ | 102 | /* Negate (subtract from 1.0) the 12 byte Xsig */ |
103 | /* This is faster in a loop on my 386 than using the "neg" instruction. */ | 103 | /* This is faster in a loop on my 386 than using the "neg" instruction. */ |
104 | static inline void negate_Xsig(Xsig * x) | 104 | static inline void negate_Xsig(Xsig *x) |
105 | { | 105 | { |
106 | asm volatile ("movl %1,%%esi;\n" | 106 | asm volatile ("movl %1,%%esi;\n" |
107 | "xorl %%ecx,%%ecx;\n" | 107 | "xorl %%ecx,%%ecx;\n" |
diff --git a/arch/x86/math-emu/poly_2xm1.c b/arch/x86/math-emu/poly_2xm1.c index d8f2be3c8383..b00e9e10cdce 100644 --- a/arch/x86/math-emu/poly_2xm1.c +++ b/arch/x86/math-emu/poly_2xm1.c | |||
@@ -49,7 +49,7 @@ static const Xsig *shiftterm[] = { &shiftterm0, &shiftterm1, | |||
49 | /*--- poly_2xm1() -----------------------------------------------------------+ | 49 | /*--- poly_2xm1() -----------------------------------------------------------+ |
50 | | Requires st(0) which is TAG_Valid and < 1. | | 50 | | Requires st(0) which is TAG_Valid and < 1. | |
51 | +---------------------------------------------------------------------------*/ | 51 | +---------------------------------------------------------------------------*/ |
52 | int poly_2xm1(u_char sign, FPU_REG * arg, FPU_REG * result) | 52 | int poly_2xm1(u_char sign, FPU_REG *arg, FPU_REG *result) |
53 | { | 53 | { |
54 | long int exponent, shift; | 54 | long int exponent, shift; |
55 | unsigned long long Xll; | 55 | unsigned long long Xll; |
diff --git a/arch/x86/math-emu/poly_atan.c b/arch/x86/math-emu/poly_atan.c index 2f4ac8143fc3..20c28e58e2d4 100644 --- a/arch/x86/math-emu/poly_atan.c +++ b/arch/x86/math-emu/poly_atan.c | |||
@@ -48,8 +48,8 @@ static const Xsig pi_signif = MK_XSIG(0xc90fdaa2, 0x2168c234, 0xc4c6628b); | |||
48 | /*--- poly_atan() -----------------------------------------------------------+ | 48 | /*--- poly_atan() -----------------------------------------------------------+ |
49 | | | | 49 | | | |
50 | +---------------------------------------------------------------------------*/ | 50 | +---------------------------------------------------------------------------*/ |
51 | void poly_atan(FPU_REG * st0_ptr, u_char st0_tag, | 51 | void poly_atan(FPU_REG *st0_ptr, u_char st0_tag, |
52 | FPU_REG * st1_ptr, u_char st1_tag) | 52 | FPU_REG *st1_ptr, u_char st1_tag) |
53 | { | 53 | { |
54 | u_char transformed, inverted, sign1, sign2; | 54 | u_char transformed, inverted, sign1, sign2; |
55 | int exponent; | 55 | int exponent; |
diff --git a/arch/x86/math-emu/poly_l2.c b/arch/x86/math-emu/poly_l2.c index c0102ae87511..8e2ff4b28a0a 100644 --- a/arch/x86/math-emu/poly_l2.c +++ b/arch/x86/math-emu/poly_l2.c | |||
@@ -23,7 +23,7 @@ static void log2_kernel(FPU_REG const *arg, u_char argsign, | |||
23 | /*--- poly_l2() -------------------------------------------------------------+ | 23 | /*--- poly_l2() -------------------------------------------------------------+ |
24 | | Base 2 logarithm by a polynomial approximation. | | 24 | | Base 2 logarithm by a polynomial approximation. | |
25 | +---------------------------------------------------------------------------*/ | 25 | +---------------------------------------------------------------------------*/ |
26 | void poly_l2(FPU_REG * st0_ptr, FPU_REG * st1_ptr, u_char st1_sign) | 26 | void poly_l2(FPU_REG *st0_ptr, FPU_REG *st1_ptr, u_char st1_sign) |
27 | { | 27 | { |
28 | long int exponent, expon, expon_expon; | 28 | long int exponent, expon, expon_expon; |
29 | Xsig accumulator, expon_accum, yaccum; | 29 | Xsig accumulator, expon_accum, yaccum; |
@@ -178,7 +178,7 @@ static const unsigned long leadterm = 0xb8000000; | |||
178 | | Base 2 logarithm by a polynomial approximation. | | 178 | | Base 2 logarithm by a polynomial approximation. | |
179 | | log2(x+1) | | 179 | | log2(x+1) | |
180 | +---------------------------------------------------------------------------*/ | 180 | +---------------------------------------------------------------------------*/ |
181 | static void log2_kernel(FPU_REG const *arg, u_char argsign, Xsig * accum_result, | 181 | static void log2_kernel(FPU_REG const *arg, u_char argsign, Xsig *accum_result, |
182 | long int *expon) | 182 | long int *expon) |
183 | { | 183 | { |
184 | long int exponent, adj; | 184 | long int exponent, adj; |
diff --git a/arch/x86/math-emu/poly_sin.c b/arch/x86/math-emu/poly_sin.c index 7273ae0c7692..b862039c728e 100644 --- a/arch/x86/math-emu/poly_sin.c +++ b/arch/x86/math-emu/poly_sin.c | |||
@@ -54,7 +54,7 @@ static const unsigned long long neg_terms_h[N_COEFF_NH] = { | |||
54 | /*--- poly_sine() -----------------------------------------------------------+ | 54 | /*--- poly_sine() -----------------------------------------------------------+ |
55 | | | | 55 | | | |
56 | +---------------------------------------------------------------------------*/ | 56 | +---------------------------------------------------------------------------*/ |
57 | void poly_sine(FPU_REG * st0_ptr) | 57 | void poly_sine(FPU_REG *st0_ptr) |
58 | { | 58 | { |
59 | int exponent, echange; | 59 | int exponent, echange; |
60 | Xsig accumulator, argSqrd, argTo4; | 60 | Xsig accumulator, argSqrd, argTo4; |
@@ -197,7 +197,7 @@ void poly_sine(FPU_REG * st0_ptr) | |||
197 | /*--- poly_cos() ------------------------------------------------------------+ | 197 | /*--- poly_cos() ------------------------------------------------------------+ |
198 | | | | 198 | | | |
199 | +---------------------------------------------------------------------------*/ | 199 | +---------------------------------------------------------------------------*/ |
200 | void poly_cos(FPU_REG * st0_ptr) | 200 | void poly_cos(FPU_REG *st0_ptr) |
201 | { | 201 | { |
202 | FPU_REG result; | 202 | FPU_REG result; |
203 | long int exponent, exp2, echange; | 203 | long int exponent, exp2, echange; |
diff --git a/arch/x86/math-emu/poly_tan.c b/arch/x86/math-emu/poly_tan.c index c0d181e39229..1875763e0c02 100644 --- a/arch/x86/math-emu/poly_tan.c +++ b/arch/x86/math-emu/poly_tan.c | |||
@@ -47,7 +47,7 @@ static const unsigned long long twothirds = 0xaaaaaaaaaaaaaaabLL; | |||
47 | /*--- poly_tan() ------------------------------------------------------------+ | 47 | /*--- poly_tan() ------------------------------------------------------------+ |
48 | | | | 48 | | | |
49 | +---------------------------------------------------------------------------*/ | 49 | +---------------------------------------------------------------------------*/ |
50 | void poly_tan(FPU_REG * st0_ptr) | 50 | void poly_tan(FPU_REG *st0_ptr) |
51 | { | 51 | { |
52 | long int exponent; | 52 | long int exponent; |
53 | int invert; | 53 | int invert; |
diff --git a/arch/x86/math-emu/reg_convert.c b/arch/x86/math-emu/reg_convert.c index afd31b31000d..108060779977 100644 --- a/arch/x86/math-emu/reg_convert.c +++ b/arch/x86/math-emu/reg_convert.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include "exception.h" | 13 | #include "exception.h" |
14 | #include "fpu_emu.h" | 14 | #include "fpu_emu.h" |
15 | 15 | ||
16 | int FPU_to_exp16(FPU_REG const *a, FPU_REG * x) | 16 | int FPU_to_exp16(FPU_REG const *a, FPU_REG *x) |
17 | { | 17 | { |
18 | int sign = getsign(a); | 18 | int sign = getsign(a); |
19 | 19 | ||
diff --git a/arch/x86/math-emu/reg_ld_str.c b/arch/x86/math-emu/reg_ld_str.c index 0b2ca8dc2988..799d4af5be66 100644 --- a/arch/x86/math-emu/reg_ld_str.c +++ b/arch/x86/math-emu/reg_ld_str.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #define SINGLE_Ebias 127 | 35 | #define SINGLE_Ebias 127 |
36 | #define SINGLE_Emin (-126) /* smallest valid exponent */ | 36 | #define SINGLE_Emin (-126) /* smallest valid exponent */ |
37 | 37 | ||
38 | static u_char normalize_no_excep(FPU_REG * r, int exp, int sign) | 38 | static u_char normalize_no_excep(FPU_REG *r, int exp, int sign) |
39 | { | 39 | { |
40 | u_char tag; | 40 | u_char tag; |
41 | 41 | ||
@@ -49,7 +49,7 @@ static u_char normalize_no_excep(FPU_REG * r, int exp, int sign) | |||
49 | return tag; | 49 | return tag; |
50 | } | 50 | } |
51 | 51 | ||
52 | int FPU_tagof(FPU_REG * ptr) | 52 | int FPU_tagof(FPU_REG *ptr) |
53 | { | 53 | { |
54 | int exp; | 54 | int exp; |
55 | 55 | ||
@@ -78,7 +78,7 @@ int FPU_tagof(FPU_REG * ptr) | |||
78 | } | 78 | } |
79 | 79 | ||
80 | /* Get a long double from user memory */ | 80 | /* Get a long double from user memory */ |
81 | int FPU_load_extended(long double __user * s, int stnr) | 81 | int FPU_load_extended(long double __user *s, int stnr) |
82 | { | 82 | { |
83 | FPU_REG *sti_ptr = &st(stnr); | 83 | FPU_REG *sti_ptr = &st(stnr); |
84 | 84 | ||
@@ -91,7 +91,7 @@ int FPU_load_extended(long double __user * s, int stnr) | |||
91 | } | 91 | } |
92 | 92 | ||
93 | /* Get a double from user memory */ | 93 | /* Get a double from user memory */ |
94 | int FPU_load_double(double __user * dfloat, FPU_REG * loaded_data) | 94 | int FPU_load_double(double __user *dfloat, FPU_REG *loaded_data) |
95 | { | 95 | { |
96 | int exp, tag, negative; | 96 | int exp, tag, negative; |
97 | unsigned m64, l64; | 97 | unsigned m64, l64; |
@@ -152,7 +152,7 @@ int FPU_load_double(double __user * dfloat, FPU_REG * loaded_data) | |||
152 | } | 152 | } |
153 | 153 | ||
154 | /* Get a float from user memory */ | 154 | /* Get a float from user memory */ |
155 | int FPU_load_single(float __user * single, FPU_REG * loaded_data) | 155 | int FPU_load_single(float __user *single, FPU_REG *loaded_data) |
156 | { | 156 | { |
157 | unsigned m32; | 157 | unsigned m32; |
158 | int exp, tag, negative; | 158 | int exp, tag, negative; |
@@ -206,7 +206,7 @@ int FPU_load_single(float __user * single, FPU_REG * loaded_data) | |||
206 | } | 206 | } |
207 | 207 | ||
208 | /* Get a long long from user memory */ | 208 | /* Get a long long from user memory */ |
209 | int FPU_load_int64(long long __user * _s) | 209 | int FPU_load_int64(long long __user *_s) |
210 | { | 210 | { |
211 | long long s; | 211 | long long s; |
212 | int sign; | 212 | int sign; |
@@ -236,7 +236,7 @@ int FPU_load_int64(long long __user * _s) | |||
236 | } | 236 | } |
237 | 237 | ||
238 | /* Get a long from user memory */ | 238 | /* Get a long from user memory */ |
239 | int FPU_load_int32(long __user * _s, FPU_REG * loaded_data) | 239 | int FPU_load_int32(long __user *_s, FPU_REG *loaded_data) |
240 | { | 240 | { |
241 | long s; | 241 | long s; |
242 | int negative; | 242 | int negative; |
@@ -265,7 +265,7 @@ int FPU_load_int32(long __user * _s, FPU_REG * loaded_data) | |||
265 | } | 265 | } |
266 | 266 | ||
267 | /* Get a short from user memory */ | 267 | /* Get a short from user memory */ |
268 | int FPU_load_int16(short __user * _s, FPU_REG * loaded_data) | 268 | int FPU_load_int16(short __user *_s, FPU_REG *loaded_data) |
269 | { | 269 | { |
270 | int s, negative; | 270 | int s, negative; |
271 | 271 | ||
@@ -294,7 +294,7 @@ int FPU_load_int16(short __user * _s, FPU_REG * loaded_data) | |||
294 | } | 294 | } |
295 | 295 | ||
296 | /* Get a packed bcd array from user memory */ | 296 | /* Get a packed bcd array from user memory */ |
297 | int FPU_load_bcd(u_char __user * s) | 297 | int FPU_load_bcd(u_char __user *s) |
298 | { | 298 | { |
299 | FPU_REG *st0_ptr = &st(0); | 299 | FPU_REG *st0_ptr = &st(0); |
300 | int pos; | 300 | int pos; |
@@ -333,7 +333,7 @@ int FPU_load_bcd(u_char __user * s) | |||
333 | /*===========================================================================*/ | 333 | /*===========================================================================*/ |
334 | 334 | ||
335 | /* Put a long double into user memory */ | 335 | /* Put a long double into user memory */ |
336 | int FPU_store_extended(FPU_REG * st0_ptr, u_char st0_tag, | 336 | int FPU_store_extended(FPU_REG *st0_ptr, u_char st0_tag, |
337 | long double __user * d) | 337 | long double __user * d) |
338 | { | 338 | { |
339 | /* | 339 | /* |
@@ -375,7 +375,7 @@ int FPU_store_extended(FPU_REG * st0_ptr, u_char st0_tag, | |||
375 | } | 375 | } |
376 | 376 | ||
377 | /* Put a double into user memory */ | 377 | /* Put a double into user memory */ |
378 | int FPU_store_double(FPU_REG * st0_ptr, u_char st0_tag, double __user * dfloat) | 378 | int FPU_store_double(FPU_REG *st0_ptr, u_char st0_tag, double __user *dfloat) |
379 | { | 379 | { |
380 | unsigned long l[2]; | 380 | unsigned long l[2]; |
381 | unsigned long increment = 0; /* avoid gcc warnings */ | 381 | unsigned long increment = 0; /* avoid gcc warnings */ |
@@ -565,7 +565,7 @@ int FPU_store_double(FPU_REG * st0_ptr, u_char st0_tag, double __user * dfloat) | |||
565 | } | 565 | } |
566 | 566 | ||
567 | /* Put a float into user memory */ | 567 | /* Put a float into user memory */ |
568 | int FPU_store_single(FPU_REG * st0_ptr, u_char st0_tag, float __user * single) | 568 | int FPU_store_single(FPU_REG *st0_ptr, u_char st0_tag, float __user *single) |
569 | { | 569 | { |
570 | long templ = 0; | 570 | long templ = 0; |
571 | unsigned long increment = 0; /* avoid gcc warnings */ | 571 | unsigned long increment = 0; /* avoid gcc warnings */ |
@@ -754,7 +754,7 @@ int FPU_store_single(FPU_REG * st0_ptr, u_char st0_tag, float __user * single) | |||
754 | } | 754 | } |
755 | 755 | ||
756 | /* Put a long long into user memory */ | 756 | /* Put a long long into user memory */ |
757 | int FPU_store_int64(FPU_REG * st0_ptr, u_char st0_tag, long long __user * d) | 757 | int FPU_store_int64(FPU_REG *st0_ptr, u_char st0_tag, long long __user *d) |
758 | { | 758 | { |
759 | FPU_REG t; | 759 | FPU_REG t; |
760 | long long tll; | 760 | long long tll; |
@@ -804,7 +804,7 @@ int FPU_store_int64(FPU_REG * st0_ptr, u_char st0_tag, long long __user * d) | |||
804 | } | 804 | } |
805 | 805 | ||
806 | /* Put a long into user memory */ | 806 | /* Put a long into user memory */ |
807 | int FPU_store_int32(FPU_REG * st0_ptr, u_char st0_tag, long __user * d) | 807 | int FPU_store_int32(FPU_REG *st0_ptr, u_char st0_tag, long __user *d) |
808 | { | 808 | { |
809 | FPU_REG t; | 809 | FPU_REG t; |
810 | int precision_loss; | 810 | int precision_loss; |
@@ -850,7 +850,7 @@ int FPU_store_int32(FPU_REG * st0_ptr, u_char st0_tag, long __user * d) | |||
850 | } | 850 | } |
851 | 851 | ||
852 | /* Put a short into user memory */ | 852 | /* Put a short into user memory */ |
853 | int FPU_store_int16(FPU_REG * st0_ptr, u_char st0_tag, short __user * d) | 853 | int FPU_store_int16(FPU_REG *st0_ptr, u_char st0_tag, short __user *d) |
854 | { | 854 | { |
855 | FPU_REG t; | 855 | FPU_REG t; |
856 | int precision_loss; | 856 | int precision_loss; |
@@ -896,7 +896,7 @@ int FPU_store_int16(FPU_REG * st0_ptr, u_char st0_tag, short __user * d) | |||
896 | } | 896 | } |
897 | 897 | ||
898 | /* Put a packed bcd array into user memory */ | 898 | /* Put a packed bcd array into user memory */ |
899 | int FPU_store_bcd(FPU_REG * st0_ptr, u_char st0_tag, u_char __user * d) | 899 | int FPU_store_bcd(FPU_REG *st0_ptr, u_char st0_tag, u_char __user *d) |
900 | { | 900 | { |
901 | FPU_REG t; | 901 | FPU_REG t; |
902 | unsigned long long ll; | 902 | unsigned long long ll; |
@@ -971,7 +971,7 @@ int FPU_store_bcd(FPU_REG * st0_ptr, u_char st0_tag, u_char __user * d) | |||
971 | /* Overflow is signalled by a non-zero return value (in eax). | 971 | /* Overflow is signalled by a non-zero return value (in eax). |
972 | In the case of overflow, the returned significand always has the | 972 | In the case of overflow, the returned significand always has the |
973 | largest possible value */ | 973 | largest possible value */ |
974 | int FPU_round_to_int(FPU_REG * r, u_char tag) | 974 | int FPU_round_to_int(FPU_REG *r, u_char tag) |
975 | { | 975 | { |
976 | u_char very_big; | 976 | u_char very_big; |
977 | unsigned eax; | 977 | unsigned eax; |
@@ -1028,7 +1028,7 @@ int FPU_round_to_int(FPU_REG * r, u_char tag) | |||
1028 | 1028 | ||
1029 | /*===========================================================================*/ | 1029 | /*===========================================================================*/ |
1030 | 1030 | ||
1031 | u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user * s) | 1031 | u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user *s) |
1032 | { | 1032 | { |
1033 | unsigned short tag_word = 0; | 1033 | unsigned short tag_word = 0; |
1034 | u_char tag; | 1034 | u_char tag; |
@@ -1121,7 +1121,7 @@ u_char __user *fldenv(fpu_addr_modes addr_modes, u_char __user * s) | |||
1121 | return s; | 1121 | return s; |
1122 | } | 1122 | } |
1123 | 1123 | ||
1124 | void frstor(fpu_addr_modes addr_modes, u_char __user * data_address) | 1124 | void frstor(fpu_addr_modes addr_modes, u_char __user *data_address) |
1125 | { | 1125 | { |
1126 | int i, regnr; | 1126 | int i, regnr; |
1127 | u_char __user *s = fldenv(addr_modes, data_address); | 1127 | u_char __user *s = fldenv(addr_modes, data_address); |
@@ -1144,7 +1144,7 @@ void frstor(fpu_addr_modes addr_modes, u_char __user * data_address) | |||
1144 | 1144 | ||
1145 | } | 1145 | } |
1146 | 1146 | ||
1147 | u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user * d) | 1147 | u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user *d) |
1148 | { | 1148 | { |
1149 | if ((addr_modes.default_mode == VM86) || | 1149 | if ((addr_modes.default_mode == VM86) || |
1150 | ((addr_modes.default_mode == PM16) | 1150 | ((addr_modes.default_mode == PM16) |
@@ -1200,7 +1200,7 @@ u_char __user *fstenv(fpu_addr_modes addr_modes, u_char __user * d) | |||
1200 | return d; | 1200 | return d; |
1201 | } | 1201 | } |
1202 | 1202 | ||
1203 | void fsave(fpu_addr_modes addr_modes, u_char __user * data_address) | 1203 | void fsave(fpu_addr_modes addr_modes, u_char __user *data_address) |
1204 | { | 1204 | { |
1205 | u_char __user *d; | 1205 | u_char __user *d; |
1206 | int offset = (top & 7) * 10, other = 80 - offset; | 1206 | int offset = (top & 7) * 10, other = 80 - offset; |