aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/math-emu/fpu_trig.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/math-emu/fpu_trig.c')
-rw-r--r--arch/x86/math-emu/fpu_trig.c38
1 files changed, 19 insertions, 19 deletions
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 */
33static int trig_arg(FPU_REG * st0_ptr, int even) 33static 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
179static void single_arg_error(FPU_REG * st0_ptr, u_char st0_tag) 179static 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
191static void single_arg_2_error(FPU_REG * st0_ptr, u_char st0_tag) 191static 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
232static void f2xm1(FPU_REG * st0_ptr, u_char tag) 232static 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
275static void fptan(FPU_REG * st0_ptr, u_char st0_tag) 275static 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
354static void fxtract(FPU_REG * st0_ptr, u_char st0_tag) 354static 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
447static void fsqrt_(FPU_REG * st0_ptr, u_char st0_tag) 447static 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
505static void frndint_(FPU_REG * st0_ptr, u_char st0_tag) 505static 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
549static int fsin(FPU_REG * st0_ptr, u_char tag) 549static 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
610static int f_cos(FPU_REG * st0_ptr, u_char tag) 610static 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
680static void fcos(FPU_REG * st0_ptr, u_char st0_tag) 680static 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
685static void fsincos(FPU_REG * st0_ptr, u_char st0_tag) 685static 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. */
778static void do_fprem(FPU_REG * st0_ptr, u_char st0_tag, int round) 778static 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 */
1020static void fyl2x(FPU_REG * st0_ptr, u_char st0_tag) 1020static 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
1191static void fpatan(FPU_REG * st0_ptr, u_char st0_tag) 1191static 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
1301static void fprem(FPU_REG * st0_ptr, u_char st0_tag) 1301static 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
1306static void fprem1(FPU_REG * st0_ptr, u_char st0_tag) 1306static 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
1311static void fyl2xp1(FPU_REG * st0_ptr, u_char st0_tag) 1311static 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
1480static void fscale(FPU_REG * st0_ptr, u_char st0_tag) 1480static 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);