OCD fixes: Adds a space after /* (glory to regular expressions!)
This commit is contained in:
parent
271e0d67c4
commit
298ce1c1a7
83 changed files with 459 additions and 459 deletions
|
@ -81,8 +81,8 @@ double attribute_hidden __ieee754_atan2(double y, double x)
|
|||
switch(m) {
|
||||
case 0: return pi_o_4+tiny;/* atan(+INF,+INF) */
|
||||
case 1: return -pi_o_4-tiny;/* atan(-INF,+INF) */
|
||||
case 2: return 3.0*pi_o_4+tiny;/*atan(+INF,-INF) */
|
||||
case 3: return -3.0*pi_o_4-tiny;/*atan(-INF,-INF) */
|
||||
case 2: return 3.0*pi_o_4+tiny;/* atan(+INF,-INF) */
|
||||
case 3: return -3.0*pi_o_4-tiny;/* atan(-INF,-INF) */
|
||||
}
|
||||
} else {
|
||||
switch(m) {
|
||||
|
|
|
@ -178,7 +178,7 @@ libm_hidden_proto(scalbn)
|
|||
/* special value of x */
|
||||
if (lx == 0) {
|
||||
if (ix == 0x7ff00000 || ix == 0 || ix == 0x3ff00000) {
|
||||
z = ax; /*x is +-0,+-inf,+-1 */
|
||||
z = ax; /* x is +-0,+-inf,+-1 */
|
||||
if (hy < 0)
|
||||
z = one / z; /* z = (1/|x|) */
|
||||
if (hx < 0) {
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
#ifndef _MATH_PRIVATE_H_
|
||||
#define _MATH_PRIVATE_H_
|
||||
|
||||
/*#include <endian.h> */
|
||||
/* #include <endian.h> */
|
||||
#include "SDL_endian.h"
|
||||
/*#include <sys/types.h> */
|
||||
/* #include <sys/types.h> */
|
||||
|
||||
#define attribute_hidden
|
||||
#define libm_hidden_proto(x)
|
||||
|
|
|
@ -54,7 +54,7 @@ libm_hidden_proto(scalbn)
|
|||
GET_HIGH_WORD(hx, x);
|
||||
k = ((hx & 0x7ff00000) >> 20) - 54;
|
||||
if (n < -50000)
|
||||
return tiny * x; /*underflow */
|
||||
return tiny * x; /* underflow */
|
||||
}
|
||||
if (k == 0x7ff)
|
||||
return x + x; /* NaN or Inf */
|
||||
|
@ -67,9 +67,9 @@ libm_hidden_proto(scalbn)
|
|||
}
|
||||
if (k <= -54) {
|
||||
if (n > 50000) /* in case integer overflow in n+k */
|
||||
return huge_val * copysign(huge_val, x); /*overflow */
|
||||
return huge_val * copysign(huge_val, x); /* overflow */
|
||||
else
|
||||
return tiny * copysign(tiny, x); /*underflow */
|
||||
return tiny * copysign(tiny, x); /* underflow */
|
||||
}
|
||||
k += 54; /* subnormal result */
|
||||
SET_HIGH_WORD(x, (hx & 0x800fffff) | (k << 20));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue