FreeBSD Bugzilla – Attachment 198747 Details for
Bug 232792
Namespace pollution in all python ports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch
patch-Modules-mathmodules.c (text/plain), 1.16 KB, created by
sgk
on 2018-10-29 19:15:51 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
sgk
Created:
2018-10-29 19:15:51 UTC
Size:
1.16 KB
patch
obsolete
>--- ./Modules/mathmodule.c.orig 2018-10-29 11:54:49.671596000 -0700 >+++ ./Modules/mathmodule.c 2018-10-29 11:55:29.893121000 -0700 >@@ -67,7 +67,7 @@ > static const double logpi = 1.144729885849400174143427351353058711647; > > static double >-sinpi(double x) >+py_sinpi(double x) > { > double y, r; > int n; >@@ -296,7 +296,7 @@ > integer. */ > if (absx > 200.0) { > if (x < 0.0) { >- return 0.0/sinpi(x); >+ return 0.0/py_sinpi(x); > } > else { > errno = ERANGE; >@@ -320,7 +320,7 @@ > } > z = z * lanczos_g / y; > if (x < 0.0) { >- r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); >+ r = -pi / py_sinpi(absx) / absx * exp(y) / lanczos_sum(absx); > r -= z * r; > if (absx < 140.0) { > r /= pow(y, absx - 0.5); >@@ -390,7 +390,7 @@ > r += (absx - 0.5) * (log(absx + lanczos_g - 0.5) - 1); > if (x < 0.0) > /* Use reflection formula to get value for negative x. */ >- r = logpi - log(fabs(sinpi(absx))) - log(absx) - r; >+ r = logpi - log(fabs(py_sinpi(absx))) - log(absx) - r; > if (Py_IS_INFINITY(r)) > errno = ERANGE; > return r;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 232792
: 198747