09_comment_out_rcsid_variable.patch (32423B)
1 diff --git a/e_acos.cpp b/e_acos.cpp 2 --- a/e_acos.cpp 3 +++ b/e_acos.cpp 4 @@ -6,18 +6,18 @@ 5 * 6 * Developed at SunSoft, a Sun Microsystems, Inc. business. 7 * Permission to use, copy, modify, and distribute this 8 * software is freely granted, provided that this notice 9 * is preserved. 10 * ==================================================== 11 */ 12 13 -#include <sys/cdefs.h> 14 -__FBSDID("$FreeBSD$"); 15 +//#include <sys/cdefs.h> 16 +//__FBSDID("$FreeBSD$"); 17 18 /* __ieee754_acos(x) 19 * Method : 20 * acos(x) = pi/2 - asin(x) 21 * acos(-x) = pi/2 + asin(x) 22 * For |x|<=0.5 23 * acos(x) = pi/2 - (x + x*x^2*R(x^2)) (see asin.c) 24 * For x>0.5 25 diff --git a/e_acosh.cpp b/e_acosh.cpp 26 --- a/e_acosh.cpp 27 +++ b/e_acosh.cpp 28 @@ -7,18 +7,18 @@ 29 * Developed at SunSoft, a Sun Microsystems, Inc. business. 30 * Permission to use, copy, modify, and distribute this 31 * software is freely granted, provided that this notice 32 * is preserved. 33 * ==================================================== 34 * 35 */ 36 37 -#include <sys/cdefs.h> 38 -__FBSDID("$FreeBSD$"); 39 +//#include <sys/cdefs.h> 40 +//__FBSDID("$FreeBSD$"); 41 42 /* __ieee754_acosh(x) 43 * Method : 44 * Based on 45 * acosh(x) = log [ x + sqrt(x*x-1) ] 46 * we have 47 * acosh(x) := log(x)+ln2, if x is large; else 48 * acosh(x) := log(2x-1/(sqrt(x*x-1)+x)) if x>2; else 49 diff --git a/e_asin.cpp b/e_asin.cpp 50 --- a/e_asin.cpp 51 +++ b/e_asin.cpp 52 @@ -6,18 +6,18 @@ 53 * 54 * Developed at SunSoft, a Sun Microsystems, Inc. business. 55 * Permission to use, copy, modify, and distribute this 56 * software is freely granted, provided that this notice 57 * is preserved. 58 * ==================================================== 59 */ 60 61 -#include <sys/cdefs.h> 62 -__FBSDID("$FreeBSD$"); 63 +//#include <sys/cdefs.h> 64 +//__FBSDID("$FreeBSD$"); 65 66 /* __ieee754_asin(x) 67 * Method : 68 * Since asin(x) = x + x^3/6 + x^5*3/40 + x^7*15/336 + ... 69 * we approximate asin(x) on [0,0.5] by 70 * asin(x) = x + x*x^2*R(x^2) 71 * where 72 * R(x^2) is a rational approximation of (asin(x)-x)/x^3 73 diff --git a/e_atan2.cpp b/e_atan2.cpp 74 --- a/e_atan2.cpp 75 +++ b/e_atan2.cpp 76 @@ -7,18 +7,18 @@ 77 * Developed at SunSoft, a Sun Microsystems, Inc. business. 78 * Permission to use, copy, modify, and distribute this 79 * software is freely granted, provided that this notice 80 * is preserved. 81 * ==================================================== 82 * 83 */ 84 85 -#include <sys/cdefs.h> 86 -__FBSDID("$FreeBSD$"); 87 +//#include <sys/cdefs.h> 88 +//__FBSDID("$FreeBSD$"); 89 90 /* __ieee754_atan2(y,x) 91 * Method : 92 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 93 * 2. Reduce x to positive by (if x and y are unexceptional): 94 * ARG (x+iy) = arctan(y/x) ... if x > 0, 95 * ARG (x+iy) = pi - arctan[y/(-x)] ... if x < 0, 96 * 97 diff --git a/e_atanh.cpp b/e_atanh.cpp 98 --- a/e_atanh.cpp 99 +++ b/e_atanh.cpp 100 @@ -7,18 +7,18 @@ 101 * Developed at SunSoft, a Sun Microsystems, Inc. business. 102 * Permission to use, copy, modify, and distribute this 103 * software is freely granted, provided that this notice 104 * is preserved. 105 * ==================================================== 106 * 107 */ 108 109 -#include <sys/cdefs.h> 110 -__FBSDID("$FreeBSD$"); 111 +//#include <sys/cdefs.h> 112 +//__FBSDID("$FreeBSD$"); 113 114 /* __ieee754_atanh(x) 115 * Method : 116 * 1.Reduced x to positive by atanh(-x) = -atanh(x) 117 * 2.For x>=0.5 118 * 1 2x x 119 * atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------) 120 * 2 1 - x 1 - x 121 diff --git a/e_cosh.cpp b/e_cosh.cpp 122 --- a/e_cosh.cpp 123 +++ b/e_cosh.cpp 124 @@ -6,18 +6,18 @@ 125 * 126 * Developed at SunSoft, a Sun Microsystems, Inc. business. 127 * Permission to use, copy, modify, and distribute this 128 * software is freely granted, provided that this notice 129 * is preserved. 130 * ==================================================== 131 */ 132 133 -#include <sys/cdefs.h> 134 -__FBSDID("$FreeBSD$"); 135 +//#include <sys/cdefs.h> 136 +//__FBSDID("$FreeBSD$"); 137 138 /* __ieee754_cosh(x) 139 * Method : 140 * mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2 141 * 1. Replace x by |x| (cosh(x) = cosh(-x)). 142 * 2. 143 * [ exp(x) - 1 ]^2 144 * 0 <= x <= ln2/2 : cosh(x) := 1 + ------------------- 145 diff --git a/e_exp.cpp b/e_exp.cpp 146 --- a/e_exp.cpp 147 +++ b/e_exp.cpp 148 @@ -5,18 +5,18 @@ 149 * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. 150 * 151 * Permission to use, copy, modify, and distribute this 152 * software is freely granted, provided that this notice 153 * is preserved. 154 * ==================================================== 155 */ 156 157 -#include <sys/cdefs.h> 158 -__FBSDID("$FreeBSD$"); 159 +//#include <sys/cdefs.h> 160 +//__FBSDID("$FreeBSD$"); 161 162 /* __ieee754_exp(x) 163 * Returns the exponential of x. 164 * 165 * Method 166 * 1. Argument reduction: 167 * Reduce x to an r so that |r| <= 0.5*ln2 ~ 0.34658. 168 * Given x, find r and integer k such that 169 diff --git a/e_hypot.cpp b/e_hypot.cpp 170 --- a/e_hypot.cpp 171 +++ b/e_hypot.cpp 172 @@ -6,18 +6,18 @@ 173 * 174 * Developed at SunSoft, a Sun Microsystems, Inc. business. 175 * Permission to use, copy, modify, and distribute this 176 * software is freely granted, provided that this notice 177 * is preserved. 178 * ==================================================== 179 */ 180 181 -#include <sys/cdefs.h> 182 -__FBSDID("$FreeBSD$"); 183 +//#include <sys/cdefs.h> 184 +//__FBSDID("$FreeBSD$"); 185 186 /* __ieee754_hypot(x,y) 187 * 188 * Method : 189 * If (assume round-to-nearest) z=x*x+y*y 190 * has error less than sqrt(2)/2 ulp, than 191 * sqrt(z) has error less than 1 ulp (exercise). 192 * 193 diff --git a/e_hypotf.cpp b/e_hypotf.cpp 194 --- a/e_hypotf.cpp 195 +++ b/e_hypotf.cpp 196 @@ -8,18 +8,18 @@ 197 * 198 * Developed at SunPro, a Sun Microsystems, Inc. business. 199 * Permission to use, copy, modify, and distribute this 200 * software is freely granted, provided that this notice 201 * is preserved. 202 * ==================================================== 203 */ 204 205 -#include <sys/cdefs.h> 206 -__FBSDID("$FreeBSD$"); 207 +//#include <sys/cdefs.h> 208 +//__FBSDID("$FreeBSD$"); 209 210 #include "math.h" 211 #include "math_private.h" 212 213 float 214 __ieee754_hypotf(float x, float y) 215 { 216 float a,b,t1,t2,y1,y2,w; 217 diff --git a/e_log.cpp b/e_log.cpp 218 --- a/e_log.cpp 219 +++ b/e_log.cpp 220 @@ -6,18 +6,18 @@ 221 * 222 * Developed at SunSoft, a Sun Microsystems, Inc. business. 223 * Permission to use, copy, modify, and distribute this 224 * software is freely granted, provided that this notice 225 * is preserved. 226 * ==================================================== 227 */ 228 229 -#include <sys/cdefs.h> 230 -__FBSDID("$FreeBSD$"); 231 +//#include <sys/cdefs.h> 232 +//__FBSDID("$FreeBSD$"); 233 234 /* __ieee754_log(x) 235 * Return the logrithm of x 236 * 237 * Method : 238 * 1. Argument Reduction: find k and f such that 239 * x = 2^k * (1+f), 240 * where sqrt(2)/2 < 1+f < sqrt(2) . 241 diff --git a/e_log10.cpp b/e_log10.cpp 242 --- a/e_log10.cpp 243 +++ b/e_log10.cpp 244 @@ -6,32 +6,32 @@ 245 * 246 * Developed at SunSoft, a Sun Microsystems, Inc. business. 247 * Permission to use, copy, modify, and distribute this 248 * software is freely granted, provided that this notice 249 * is preserved. 250 * ==================================================== 251 */ 252 253 -#include <sys/cdefs.h> 254 -__FBSDID("$FreeBSD$"); 255 +//#include <sys/cdefs.h> 256 +//__FBSDID("$FreeBSD$"); 257 258 /* 259 * Return the base 10 logarithm of x. See e_log.c and k_log.h for most 260 * comments. 261 * 262 * log10(x) = (f - 0.5*f*f + k_log1p(f)) / ln10 + k * log10(2) 263 * in not-quite-routine extra precision. 264 */ 265 266 #include <float.h> 267 268 #include "math_private.h" 269 #include "k_log.h" 270 - 271 + 272 static const double 273 two54 = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */ 274 ivln10hi = 4.34294481878168880939e-01, /* 0x3fdbcb7b, 0x15200000 */ 275 ivln10lo = 2.50829467116452752298e-11, /* 0x3dbb9438, 0xca9aadd5 */ 276 log10_2hi = 3.01029995663611771306e-01, /* 0x3FD34413, 0x509F6000 */ 277 log10_2lo = 3.69423907715893078616e-13; /* 0x3D59FEF3, 0x11F12B36 */ 278 279 static const double zero = 0.0; 280 diff --git a/e_log10f.cpp b/e_log10f.cpp 281 --- a/e_log10f.cpp 282 +++ b/e_log10f.cpp 283 @@ -4,18 +4,18 @@ 284 * 285 * Developed at SunPro, a Sun Microsystems, Inc. business. 286 * Permission to use, copy, modify, and distribute this 287 * software is freely granted, provided that this notice 288 * is preserved. 289 * ==================================================== 290 */ 291 292 -#include <sys/cdefs.h> 293 -__FBSDID("$FreeBSD$"); 294 +//#include <sys/cdefs.h> 295 +//__FBSDID("$FreeBSD$"); 296 297 /* 298 * Float version of e_log10.c. See the latter for most comments. 299 */ 300 301 #include "math.h" 302 #include "math_private.h" 303 #include "k_logf.h" 304 diff --git a/e_log2.cpp b/e_log2.cpp 305 --- a/e_log2.cpp 306 +++ b/e_log2.cpp 307 @@ -6,18 +6,18 @@ 308 * 309 * Developed at SunSoft, a Sun Microsystems, Inc. business. 310 * Permission to use, copy, modify, and distribute this 311 * software is freely granted, provided that this notice 312 * is preserved. 313 * ==================================================== 314 */ 315 316 -#include <sys/cdefs.h> 317 -__FBSDID("$FreeBSD$"); 318 +//#include <sys/cdefs.h> 319 +//__FBSDID("$FreeBSD$"); 320 321 /* 322 * Return the base 2 logarithm of x. See e_log.c and k_log.h for most 323 * comments. 324 * 325 * This reduces x to {k, 1+f} exactly as in e_log.c, then calls the kernel, 326 * then does the combining and scaling steps 327 * log2(x) = (f - 0.5*f*f + k_log1p(f)) / ln2 + k 328 diff --git a/e_pow.cpp b/e_pow.cpp 329 --- a/e_pow.cpp 330 +++ b/e_pow.cpp 331 @@ -4,18 +4,18 @@ 332 * Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved. 333 * 334 * Permission to use, copy, modify, and distribute this 335 * software is freely granted, provided that this notice 336 * is preserved. 337 * ==================================================== 338 */ 339 340 -#include <sys/cdefs.h> 341 -__FBSDID("$FreeBSD$"); 342 +//#include <sys/cdefs.h> 343 +//__FBSDID("$FreeBSD$"); 344 345 /* __ieee754_pow(x,y) return x**y 346 * 347 * n 348 * Method: Let x = 2 * (1+f) 349 * 1. Compute and return log2(x) in two pieces: 350 * log2(x) = w1 + w2, 351 * where w1 has 53-24 = 29 bit trailing zeros. 352 diff --git a/e_rem_pio2.cpp b/e_rem_pio2.cpp 353 --- a/e_rem_pio2.cpp 354 +++ b/e_rem_pio2.cpp 355 @@ -8,18 +8,18 @@ 356 * Permission to use, copy, modify, and distribute this 357 * software is freely granted, provided that this notice 358 * is preserved. 359 * ==================================================== 360 * 361 * Optimized by Bruce D. Evans. 362 */ 363 364 -#include <sys/cdefs.h> 365 -__FBSDID("$FreeBSD$"); 366 +//#include <sys/cdefs.h> 367 +//__FBSDID("$FreeBSD$"); 368 369 /* __ieee754_rem_pio2(x,y) 370 * 371 * return the remainder of x rem pi/2 in y[0]+y[1] 372 * use __kernel_rem_pio2() 373 */ 374 375 #include <float.h> 376 diff --git a/e_sinh.cpp b/e_sinh.cpp 377 --- a/e_sinh.cpp 378 +++ b/e_sinh.cpp 379 @@ -6,18 +6,18 @@ 380 * 381 * Developed at SunSoft, a Sun Microsystems, Inc. business. 382 * Permission to use, copy, modify, and distribute this 383 * software is freely granted, provided that this notice 384 * is preserved. 385 * ==================================================== 386 */ 387 388 -#include <sys/cdefs.h> 389 -__FBSDID("$FreeBSD$"); 390 +//#include <sys/cdefs.h> 391 +//__FBSDID("$FreeBSD$"); 392 393 /* __ieee754_sinh(x) 394 * Method : 395 * mathematically sinh(x) if defined to be (exp(x)-exp(-x))/2 396 * 1. Replace x by |x| (sinh(-x) = -sinh(x)). 397 * 2. 398 * E + E/(E+1) 399 * 0 <= x <= 22 : sinh(x) := --------------, E=expm1(x) 400 diff --git a/k_cos.cpp b/k_cos.cpp 401 --- a/k_cos.cpp 402 +++ b/k_cos.cpp 403 @@ -6,18 +6,18 @@ 404 * 405 * Developed at SunSoft, a Sun Microsystems, Inc. business. 406 * Permission to use, copy, modify, and distribute this 407 * software is freely granted, provided that this notice 408 * is preserved. 409 * ==================================================== 410 */ 411 412 -#include <sys/cdefs.h> 413 -__FBSDID("$FreeBSD$"); 414 +//#include <sys/cdefs.h> 415 +//__FBSDID("$FreeBSD$"); 416 417 /* 418 * __kernel_cos( x, y ) 419 * kernel cos function on [-pi/4, pi/4], pi/4 ~ 0.785398164 420 * Input x is assumed to be bounded by ~pi/4 in magnitude. 421 * Input y is the tail of x. 422 * 423 * Algorithm 424 diff --git a/k_exp.cpp b/k_exp.cpp 425 --- a/k_exp.cpp 426 +++ b/k_exp.cpp 427 @@ -21,22 +21,22 @@ 428 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 429 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 430 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 431 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 432 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 433 * SUCH DAMAGE. 434 */ 435 436 -#include <sys/cdefs.h> 437 -__FBSDID("$FreeBSD$"); 438 +//#include <sys/cdefs.h> 439 +//__FBSDID("$FreeBSD$"); 440 441 #include <complex.h> 442 443 -#include "math_private.h" 444 + #include "math_private.h" 445 446 static const uint32_t k = 1799; /* constant for reduction */ 447 static const double kln2 = 1246.97177782734161156; /* k * ln2 */ 448 449 /* 450 * Compute exp(x), scaled to avoid spurious overflow. An exponent is 451 * returned separately in 'expt'. 452 * 453 diff --git a/k_log.h b/k_log.h 454 --- a/k_log.h 455 +++ b/k_log.h 456 @@ -6,18 +6,18 @@ 457 * 458 * Developed at SunSoft, a Sun Microsystems, Inc. business. 459 * Permission to use, copy, modify, and distribute this 460 * software is freely granted, provided that this notice 461 * is preserved. 462 * ==================================================== 463 */ 464 465 -#include <sys/cdefs.h> 466 -__FBSDID("$FreeBSD$"); 467 +//#include <sys/cdefs.h> 468 +//__FBSDID("$FreeBSD$"); 469 470 /* 471 * k_log1p(f): 472 * Return log(1+f) - f for 1+f in ~[sqrt(2)/2, sqrt(2)]. 473 * 474 * The following describes the overall strategy for computing 475 * logarithms in base e. The argument reduction and adding the final 476 * term of the polynomial are done by the caller for increased accuracy 477 diff --git a/k_logf.h b/k_logf.h 478 --- a/k_logf.h 479 +++ b/k_logf.h 480 @@ -4,18 +4,18 @@ 481 * 482 * Developed at SunPro, a Sun Microsystems, Inc. business. 483 * Permission to use, copy, modify, and distribute this 484 * software is freely granted, provided that this notice 485 * is preserved. 486 * ==================================================== 487 */ 488 489 -#include <sys/cdefs.h> 490 -__FBSDID("$FreeBSD$"); 491 +//#include <sys/cdefs.h> 492 +//__FBSDID("$FreeBSD$"); 493 494 /* 495 * Float version of k_log.h. See the latter for most comments. 496 */ 497 498 static const float 499 /* |(log(1+s)-log(1-s))/s - Lg(s)| < 2**-34.24 (~[-4.95e-11, 4.97e-11]). */ 500 Lg1 = 0xaaaaaa.0p-24, /* 0.66666662693 */ 501 diff --git a/k_rem_pio2.cpp b/k_rem_pio2.cpp 502 --- a/k_rem_pio2.cpp 503 +++ b/k_rem_pio2.cpp 504 @@ -6,18 +6,18 @@ 505 * 506 * Developed at SunSoft, a Sun Microsystems, Inc. business. 507 * Permission to use, copy, modify, and distribute this 508 * software is freely granted, provided that this notice 509 * is preserved. 510 * ==================================================== 511 */ 512 513 -#include <sys/cdefs.h> 514 -__FBSDID("$FreeBSD$"); 515 +//#include <sys/cdefs.h> 516 +//__FBSDID("$FreeBSD$"); 517 518 /* 519 * __kernel_rem_pio2(x,y,e0,nx,prec) 520 * double x[],y[]; int e0,nx,prec; 521 * 522 * __kernel_rem_pio2 return the last three digits of N with 523 * y = x - N*pi/2 524 * so that |y| < pi/2. 525 diff --git a/k_sin.cpp b/k_sin.cpp 526 --- a/k_sin.cpp 527 +++ b/k_sin.cpp 528 @@ -6,18 +6,18 @@ 529 * 530 * Developed at SunSoft, a Sun Microsystems, Inc. business. 531 * Permission to use, copy, modify, and distribute this 532 * software is freely granted, provided that this notice 533 * is preserved. 534 * ==================================================== 535 */ 536 537 -#include <sys/cdefs.h> 538 -__FBSDID("$FreeBSD$"); 539 +//#include <sys/cdefs.h> 540 +//__FBSDID("$FreeBSD$"); 541 542 /* __kernel_sin( x, y, iy) 543 * kernel sin function on ~[-pi/4, pi/4] (except on -0), pi/4 ~ 0.7854 544 * Input x is assumed to be bounded by ~pi/4 in magnitude. 545 * Input y is the tail of x. 546 * Input iy indicates whether y is 0. (if iy=0, y assume to be 0). 547 * 548 * Algorithm 549 diff --git a/k_tan.cpp b/k_tan.cpp 550 --- a/k_tan.cpp 551 +++ b/k_tan.cpp 552 @@ -6,18 +6,18 @@ 553 * 554 * Permission to use, copy, modify, and distribute this 555 * software is freely granted, provided that this notice 556 * is preserved. 557 * ==================================================== 558 */ 559 560 /* INDENT OFF */ 561 -#include <sys/cdefs.h> 562 -__FBSDID("$FreeBSD$"); 563 +//#include <sys/cdefs.h> 564 +//__FBSDID("$FreeBSD$"); 565 566 /* __kernel_tan( x, y, k ) 567 * kernel tan function on ~[-pi/4, pi/4] (except on -0), pi/4 ~ 0.7854 568 * Input x is assumed to be bounded by ~pi/4 in magnitude. 569 * Input y is the tail of x. 570 * Input k indicates whether tan (if k = 1) or -1/tan (if k = -1) is returned. 571 * 572 * Algorithm 573 diff --git a/s_asinh.cpp b/s_asinh.cpp 574 --- a/s_asinh.cpp 575 +++ b/s_asinh.cpp 576 @@ -5,18 +5,18 @@ 577 * 578 * Developed at SunPro, a Sun Microsystems, Inc. business. 579 * Permission to use, copy, modify, and distribute this 580 * software is freely granted, provided that this notice 581 * is preserved. 582 * ==================================================== 583 */ 584 585 -#include <sys/cdefs.h> 586 -__FBSDID("$FreeBSD$"); 587 +//#include <sys/cdefs.h> 588 +//__FBSDID("$FreeBSD$"); 589 590 /* asinh(x) 591 * Method : 592 * Based on 593 * asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ] 594 * we have 595 * asinh(x) := x if 1+x*x=1, 596 * := sign(x)*(log(x)+ln2)) for large |x|, else 597 diff --git a/s_atan.cpp b/s_atan.cpp 598 --- a/s_atan.cpp 599 +++ b/s_atan.cpp 600 @@ -5,18 +5,18 @@ 601 * 602 * Developed at SunPro, a Sun Microsystems, Inc. business. 603 * Permission to use, copy, modify, and distribute this 604 * software is freely granted, provided that this notice 605 * is preserved. 606 * ==================================================== 607 */ 608 609 -#include <sys/cdefs.h> 610 -__FBSDID("$FreeBSD$"); 611 +//#include <sys/cdefs.h> 612 +//__FBSDID("$FreeBSD$"); 613 614 /* atan(x) 615 * Method 616 * 1. Reduce x to positive by atan(x) = -atan(-x). 617 * 2. According to the integer k=4t+0.25 chopped, t=x, the argument 618 * is further reduced to one of the following intervals and the 619 * arctangent of t is evaluated by the corresponding formula: 620 * 621 diff --git a/s_cbrt.cpp b/s_cbrt.cpp 622 --- a/s_cbrt.cpp 623 +++ b/s_cbrt.cpp 624 @@ -7,18 +7,18 @@ 625 * Permission to use, copy, modify, and distribute this 626 * software is freely granted, provided that this notice 627 * is preserved. 628 * ==================================================== 629 * 630 * Optimized by Bruce D. Evans. 631 */ 632 633 -#include <sys/cdefs.h> 634 -__FBSDID("$FreeBSD$"); 635 +//#include <sys/cdefs.h> 636 +//__FBSDID("$FreeBSD$"); 637 638 #include <float.h> 639 #include "math_private.h" 640 641 /* cbrt(x) 642 * Return cube root of x 643 */ 644 static const u_int32_t 645 diff --git a/s_cos.cpp b/s_cos.cpp 646 --- a/s_cos.cpp 647 +++ b/s_cos.cpp 648 @@ -5,18 +5,18 @@ 649 * 650 * Developed at SunPro, a Sun Microsystems, Inc. business. 651 * Permission to use, copy, modify, and distribute this 652 * software is freely granted, provided that this notice 653 * is preserved. 654 * ==================================================== 655 */ 656 657 -#include <sys/cdefs.h> 658 -__FBSDID("$FreeBSD$"); 659 +//#include <sys/cdefs.h> 660 +//__FBSDID("$FreeBSD$"); 661 662 /* cos(x) 663 * Return cosine function of x. 664 * 665 * kernel function: 666 * __kernel_sin ... sine function on [-pi/4,pi/4] 667 * __kernel_cos ... cosine function on [-pi/4,pi/4] 668 * __ieee754_rem_pio2 ... argument reduction routine 669 diff --git a/s_expm1.cpp b/s_expm1.cpp 670 --- a/s_expm1.cpp 671 +++ b/s_expm1.cpp 672 @@ -5,18 +5,18 @@ 673 * 674 * Developed at SunPro, a Sun Microsystems, Inc. business. 675 * Permission to use, copy, modify, and distribute this 676 * software is freely granted, provided that this notice 677 * is preserved. 678 * ==================================================== 679 */ 680 681 -#include <sys/cdefs.h> 682 -__FBSDID("$FreeBSD$"); 683 +//#include <sys/cdefs.h> 684 +//__FBSDID("$FreeBSD$"); 685 686 /* expm1(x) 687 * Returns exp(x)-1, the exponential of x minus 1. 688 * 689 * Method 690 * 1. Argument reduction: 691 * Given x, find r and integer k such that 692 * 693 diff --git a/s_log1p.cpp b/s_log1p.cpp 694 --- a/s_log1p.cpp 695 +++ b/s_log1p.cpp 696 @@ -5,18 +5,18 @@ 697 * 698 * Developed at SunPro, a Sun Microsystems, Inc. business. 699 * Permission to use, copy, modify, and distribute this 700 * software is freely granted, provided that this notice 701 * is preserved. 702 * ==================================================== 703 */ 704 705 -#include <sys/cdefs.h> 706 -__FBSDID("$FreeBSD$"); 707 +//#include <sys/cdefs.h> 708 +//__FBSDID("$FreeBSD$"); 709 710 /* double log1p(double x) 711 * 712 * Method : 713 * 1. Argument Reduction: find k and f such that 714 * 1+x = 2^k * (1+f), 715 * where sqrt(2)/2 < 1+f < sqrt(2) . 716 * 717 diff --git a/s_sin.cpp b/s_sin.cpp 718 --- a/s_sin.cpp 719 +++ b/s_sin.cpp 720 @@ -5,18 +5,18 @@ 721 * 722 * Developed at SunPro, a Sun Microsystems, Inc. business. 723 * Permission to use, copy, modify, and distribute this 724 * software is freely granted, provided that this notice 725 * is preserved. 726 * ==================================================== 727 */ 728 729 -#include <sys/cdefs.h> 730 -__FBSDID("$FreeBSD$"); 731 +//#include <sys/cdefs.h> 732 +//__FBSDID("$FreeBSD$"); 733 734 /* sin(x) 735 * Return sine function of x. 736 * 737 * kernel function: 738 * __kernel_sin ... sine function on [-pi/4,pi/4] 739 * __kernel_cos ... cose function on [-pi/4,pi/4] 740 * __ieee754_rem_pio2 ... argument reduction routine 741 diff --git a/s_tan.cpp b/s_tan.cpp 742 --- a/s_tan.cpp 743 +++ b/s_tan.cpp 744 @@ -5,18 +5,18 @@ 745 * 746 * Developed at SunPro, a Sun Microsystems, Inc. business. 747 * Permission to use, copy, modify, and distribute this 748 * software is freely granted, provided that this notice 749 * is preserved. 750 * ==================================================== 751 */ 752 753 -#include <sys/cdefs.h> 754 -__FBSDID("$FreeBSD$"); 755 +//#include <sys/cdefs.h> 756 +//__FBSDID("$FreeBSD$"); 757 758 /* tan(x) 759 * Return tangent function of x. 760 * 761 * kernel function: 762 * __kernel_tan ... tangent function on [-pi/4,pi/4] 763 * __ieee754_rem_pio2 ... argument reduction routine 764 * 765 diff --git a/s_tanh.cpp b/s_tanh.cpp 766 --- a/s_tanh.cpp 767 +++ b/s_tanh.cpp 768 @@ -5,18 +5,18 @@ 769 * 770 * Developed at SunPro, a Sun Microsystems, Inc. business. 771 * Permission to use, copy, modify, and distribute this 772 * software is freely granted, provided that this notice 773 * is preserved. 774 * ==================================================== 775 */ 776 777 -#include <sys/cdefs.h> 778 -__FBSDID("$FreeBSD$"); 779 +//#include <sys/cdefs.h> 780 +//__FBSDID("$FreeBSD$"); 781 782 /* Tanh(x) 783 * Return the Hyperbolic Tangent of x 784 * 785 * Method : 786 * x -x 787 * e - e 788 * 0. tanh(x) is defined to be ----------- 789 --- a/e_acosf.cpp 2022-12-11 21:20:40.290068458 -0500 790 +++ b/e_acosf.cpp_new 2022-12-11 21:23:31.863880382 -0500 791 @@ -9,16 +9,16 @@ 792 * Developed at SunPro, a Sun Microsystems, Inc. business. 793 * Permission to use, copy, modify, and distribute this 794 * software is freely granted, provided that this notice 795 * is preserved. 796 * ==================================================== 797 */ 798 799 -#include <sys/cdefs.h> 800 -__FBSDID("$FreeBSD$"); 801 +//#include <sys/cdefs.h> 802 +//__FBSDID("$FreeBSD$"); 803 804 #include "math_private.h" 805 806 static const float 807 one = 1.0000000000e+00, /* 0x3F800000 */ 808 pi = 3.1415925026e+00, /* 0x40490fda */ 809 pio2_hi = 1.5707962513e+00; /* 0x3fc90fda */ 810 --- a/e_asinf.cpp 2022-12-11 21:20:40.290068458 -0500 811 +++ b/e_asinf.cpp_new 2022-12-11 21:23:31.875880502 -0500 812 @@ -9,16 +9,16 @@ 813 * Developed at SunPro, a Sun Microsystems, Inc. business. 814 * Permission to use, copy, modify, and distribute this 815 * software is freely granted, provided that this notice 816 * is preserved. 817 * ==================================================== 818 */ 819 820 -#include <sys/cdefs.h> 821 -__FBSDID("$FreeBSD$"); 822 +//#include <sys/cdefs.h> 823 +//__FBSDID("$FreeBSD$"); 824 825 #include "math_private.h" 826 827 static const float 828 one = 1.0000000000e+00, /* 0x3F800000 */ 829 huge = 1.000e+30, 830 /* coefficient for R(x^2) */ 831 --- a/e_expf.cpp 2022-12-11 21:20:40.290068458 -0500 832 +++ b/e_expf.cpp_new 2022-12-11 21:23:31.895880703 -0500 833 @@ -9,16 +9,16 @@ 834 * Developed at SunPro, a Sun Microsystems, Inc. business. 835 * Permission to use, copy, modify, and distribute this 836 * software is freely granted, provided that this notice 837 * is preserved. 838 * ==================================================== 839 */ 840 841 -#include <sys/cdefs.h> 842 -__FBSDID("$FreeBSD$"); 843 +//#include <sys/cdefs.h> 844 +//__FBSDID("$FreeBSD$"); 845 846 #include <float.h> 847 848 #include "math_private.h" 849 850 static const float 851 one = 1.0, 852 --- a/e_logf.cpp 2022-12-11 21:20:40.290068458 -0500 853 +++ b/e_logf.cpp_new 2022-12-11 21:23:31.935881104 -0500 854 @@ -9,16 +9,16 @@ 855 * Developed at SunPro, a Sun Microsystems, Inc. business. 856 * Permission to use, copy, modify, and distribute this 857 * software is freely granted, provided that this notice 858 * is preserved. 859 * ==================================================== 860 */ 861 862 -#include <sys/cdefs.h> 863 -__FBSDID("$FreeBSD$"); 864 +//#include <sys/cdefs.h> 865 +//__FBSDID("$FreeBSD$"); 866 867 #include "math_private.h" 868 869 static const float 870 ln2_hi = 6.9313812256e-01, /* 0x3f317180 */ 871 ln2_lo = 9.0580006145e-06, /* 0x3717f7d1 */ 872 two25 = 3.355443200e+07, /* 0x4c000000 */ 873 --- a/e_powf.cpp 2022-12-11 21:20:40.290068458 -0500 874 +++ b/e_powf.cpp_new 2022-12-11 21:23:31.971881465 -0500 875 @@ -9,16 +9,16 @@ 876 * Developed at SunPro, a Sun Microsystems, Inc. business. 877 * Permission to use, copy, modify, and distribute this 878 * software is freely granted, provided that this notice 879 * is preserved. 880 * ==================================================== 881 */ 882 883 -#include <sys/cdefs.h> 884 -__FBSDID("$FreeBSD$"); 885 +//#include <sys/cdefs.h> 886 +//__FBSDID("$FreeBSD$"); 887 888 #include "math_private.h" 889 890 static const float 891 bp[] = {1.0, 1.5,}, 892 dp_h[] = { 0.0, 5.84960938e-01,}, /* 0x3f15c000 */ 893 dp_l[] = { 0.0, 1.56322085e-06,}, /* 0x35d1cfdc */ 894 --- a/e_rem_pio2f.cpp 2022-12-11 21:20:40.290068458 -0500 895 +++ b/e_rem_pio2f.cpp_new 2022-12-11 21:23:32.015881905 -0500 896 @@ -10,16 +10,16 @@ 897 * Developed at SunPro, a Sun Microsystems, Inc. business. 898 * Permission to use, copy, modify, and distribute this 899 * software is freely granted, provided that this notice 900 * is preserved. 901 * ==================================================== 902 */ 903 904 -#include <sys/cdefs.h> 905 -__FBSDID("$FreeBSD$"); 906 +//#include <sys/cdefs.h> 907 +//__FBSDID("$FreeBSD$"); 908 909 /* __ieee754_rem_pio2f(x,y) 910 * 911 * return the remainder of x rem pi/2 in *y 912 * use double precision for everything except passing x 913 * use __kernel_rem_pio2() for large x 914 */ 915 --- b/k_cosf.cpp 2022-12-11 21:20:40.290068458 -0500 916 +++ b/k_cosf.cpp_new 2022-12-11 21:23:32.051882266 -0500 917 @@ -11,16 +11,16 @@ 918 * Permission to use, copy, modify, and distribute this 919 * software is freely granted, provided that this notice 920 * is preserved. 921 * ==================================================== 922 */ 923 924 #ifndef INLINE_KERNEL_COSDF 925 -#include <sys/cdefs.h> 926 -__FBSDID("$FreeBSD$"); 927 +//#include <sys/cdefs.h> 928 +//__FBSDID("$FreeBSD$"); 929 #endif 930 931 #include "math_private.h" 932 933 /* |cos(x) - c(x)| < 2**-34.1 (~[-5.37e-11, 5.295e-11]). */ 934 static const double 935 one = 1.0, 936 --- b/k_expf.cpp 2022-12-11 21:20:40.290068458 -0500 937 +++ b/k_expf.cpp_new 2022-12-11 21:23:32.087882627 -0500 938 @@ -22,16 +22,16 @@ 939 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 940 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 941 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 942 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 943 * SUCH DAMAGE. 944 */ 945 946 -#include <sys/cdefs.h> 947 -__FBSDID("$FreeBSD$"); 948 +//#include <sys/cdefs.h> 949 +//__FBSDID("$FreeBSD$"); 950 951 #include <complex.h> 952 953 #include "math_private.h" 954 955 static const uint32_t k = 235; /* constant for reduction */ 956 static const float kln2 = 162.88958740F; /* k * ln2 */ 957 --- b/k_sinf.cpp 2022-12-11 21:20:40.290068458 -0500 958 +++ b/k_sinf.cpp_new 2022-12-11 21:23:32.119882948 -0500 959 @@ -11,16 +11,16 @@ 960 * Permission to use, copy, modify, and distribute this 961 * software is freely granted, provided that this notice 962 * is preserved. 963 * ==================================================== 964 */ 965 966 #ifndef INLINE_KERNEL_SINDF 967 -#include <sys/cdefs.h> 968 -__FBSDID("$FreeBSD$"); 969 +//#include <sys/cdefs.h> 970 +//__FBSDID("$FreeBSD$"); 971 #endif 972 973 #include "math_private.h" 974 975 /* |sin(x)/x - s(x)| < 2**-37.5 (~[-4.89e-12, 4.824e-12]). */ 976 static const double 977 S1 = -0x15555554cbac77.0p-55, /* -0.166666666416265235595 */ 978 --- b/k_tanf.cpp 2022-12-11 21:20:40.290068458 -0500 979 +++ b/k_tanf.cpp_new 2022-12-11 21:23:32.155883308 -0500 980 @@ -10,16 +10,16 @@ 981 * Permission to use, copy, modify, and distribute this 982 * software is freely granted, provided that this notice 983 * is preserved. 984 * ==================================================== 985 */ 986 987 #ifndef INLINE_KERNEL_TANDF 988 -#include <sys/cdefs.h> 989 -__FBSDID("$FreeBSD$"); 990 +//#include <sys/cdefs.h> 991 +//__FBSDID("$FreeBSD$"); 992 #endif 993 994 #include "math_private.h" 995 996 /* |tan(x)/x - t(x)| < 2**-25.5 (~[-2e-08, 2e-08]). */ 997 static const double 998 T[] = { 999 --- a/s_atanf.cpp 2022-12-11 21:20:40.290068458 -0500 1000 +++ b/s_atanf.cpp_new 2022-12-11 21:23:32.199883749 -0500 1001 @@ -9,16 +9,16 @@ 1002 * Developed at SunPro, a Sun Microsystems, Inc. business. 1003 * Permission to use, copy, modify, and distribute this 1004 * software is freely granted, provided that this notice 1005 * is preserved. 1006 * ==================================================== 1007 */ 1008 1009 -#include <sys/cdefs.h> 1010 -__FBSDID("$FreeBSD$"); 1011 +//#include <sys/cdefs.h> 1012 +//__FBSDID("$FreeBSD$"); 1013 1014 #include "math_private.h" 1015 1016 static const float atanhi[] = { 1017 4.6364760399e-01, /* atan(0.5)hi 0x3eed6338 */ 1018 7.8539812565e-01, /* atan(1.0)hi 0x3f490fda */ 1019 9.8279368877e-01, /* atan(1.5)hi 0x3f7b985e */ 1020 --- a/s_cosf.cpp 2022-12-11 21:20:40.290068458 -0500 1021 +++ b/s_cosf.cpp_new 2022-12-11 21:23:32.235884110 -0500 1022 @@ -10,16 +10,16 @@ 1023 * Developed at SunPro, a Sun Microsystems, Inc. business. 1024 * Permission to use, copy, modify, and distribute this 1025 * software is freely granted, provided that this notice 1026 * is preserved. 1027 * ==================================================== 1028 */ 1029 1030 -#include <sys/cdefs.h> 1031 -__FBSDID("$FreeBSD$"); 1032 +//#include <sys/cdefs.h> 1033 +//__FBSDID("$FreeBSD$"); 1034 1035 #include <float.h> 1036 1037 #define INLINE_KERNEL_COSDF 1038 #define INLINE_KERNEL_SINDF 1039 #define INLINE_REM_PIO2F 1040 #include "math_private.h" 1041 --- a/s_exp2.cpp 2022-12-11 21:20:40.290068458 -0500 1042 +++ b/s_exp2.cpp_new 2022-12-11 21:23:32.275884511 -0500 1043 @@ -22,16 +22,16 @@ 1044 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1045 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1046 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1047 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1048 * SUCH DAMAGE. 1049 */ 1050 1051 -#include <sys/cdefs.h> 1052 -__FBSDID("$FreeBSD$"); 1053 +//#include <sys/cdefs.h> 1054 +//__FBSDID("$FreeBSD$"); 1055 1056 #include <float.h> 1057 1058 #include "math_private.h" 1059 1060 #define TBLBITS 8 1061 #define TBLSIZE (1 << TBLBITS) 1062 --- a/s_exp2f.cpp 2022-12-11 21:20:40.290068458 -0500 1063 +++ b/s_exp2f.cpp_new 2022-12-11 21:23:32.311884872 -0500 1064 @@ -22,16 +22,16 @@ 1065 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 1066 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 1067 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 1068 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 1069 * SUCH DAMAGE. 1070 */ 1071 1072 -#include <sys/cdefs.h> 1073 -__FBSDID("$FreeBSD$"); 1074 +//#include <sys/cdefs.h> 1075 +//__FBSDID("$FreeBSD$"); 1076 1077 #include <float.h> 1078 1079 #include "math_private.h" 1080 1081 #define TBLBITS 4 1082 #define TBLSIZE (1 << TBLBITS) 1083 --- a/s_sinf.cpp 2022-12-11 21:20:40.290068458 -0500 1084 +++ b/s_sinf.cpp_new 2022-12-11 21:23:32.383885594 -0500 1085 @@ -10,16 +10,16 @@ 1086 * Developed at SunPro, a Sun Microsystems, Inc. business. 1087 * Permission to use, copy, modify, and distribute this 1088 * software is freely granted, provided that this notice 1089 * is preserved. 1090 * ==================================================== 1091 */ 1092 1093 -#include <sys/cdefs.h> 1094 -__FBSDID("$FreeBSD$"); 1095 +//#include <sys/cdefs.h> 1096 +//__FBSDID("$FreeBSD$"); 1097 1098 #include <float.h> 1099 1100 #define INLINE_KERNEL_COSDF 1101 #define INLINE_KERNEL_SINDF 1102 #define INLINE_REM_PIO2F 1103 #include "math_private.h" 1104 --- a/s_tanf.cpp 2022-12-11 21:20:40.290068458 -0500 1105 +++ b/s_tanf.cpp_new 2022-12-11 21:23:32.419885954 -0500 1106 @@ -10,16 +10,16 @@ 1107 * Developed at SunPro, a Sun Microsystems, Inc. business. 1108 * Permission to use, copy, modify, and distribute this 1109 * software is freely granted, provided that this notice 1110 * is preserved. 1111 * ==================================================== 1112 */ 1113 1114 -#include <sys/cdefs.h> 1115 -__FBSDID("$FreeBSD$"); 1116 +//#include <sys/cdefs.h> 1117 +//__FBSDID("$FreeBSD$"); 1118 1119 #include <float.h> 1120 1121 #define INLINE_KERNEL_TANDF 1122 #define INLINE_REM_PIO2F 1123 #include "math_private.h" 1124 #include "e_rem_pio2f.c"