Closed
Conversation
…111 (dlang#10739) Load `Bcrypt.dll` ourselves as needed.
…ents count instead of sentinel (dlang#10728)
* Implement `version (linux_legacy_emulate_getrandom)` * Fix style
* Add changelog entry for the `getrandom()` backwards compatibility shim * Comment message pragma of the `getrandom()` backwards compatibility shim
This reverts commit bea3184.
Closes: dlang#10747 Closes: dlang#10764
Co-authored-by: Parmar Mahipalsinh <mahipalsinhp81@gmail.com>
…lang#10717)" This reverts commit 530660b.
Check GC.inFinalizer when writing debug garbage to referenced GC array, as this is not valid to do when called from the GC.
…ang#10788) destroyed from a GC finalizer.
… of a move constructor. (dlang#10810)
Use of rndtol to determine which domain x belongs to is replaced with trunc. rndtol depends on rounding mode. Depending on the mode, rndtol(-1.5) could be -2 or -1, which map to different domains with different signs. trunc doesn't depend on rounding mode. trunc(-1.5) is always -1.
dlang/dmd#21525 Adds the template `_d_newarrayUTrace`. To fix dlang/dmd#21033, this commit needs to replace the use of the non-template hook with the newly added template in `std.array.d`. Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
Fix the large value method of computing std.mathspecial.beta so that it recovers the signs of gamma(x), gamma(y), and gamma(x+y).
This modifies `std.mathspecial.logmdigammaInverse(y)` so that when y is negative, not just less than zero, it returns NaN. Since NaNs can be negative, the NaN payload propagation logic is moved to the top of the function.
…ng#10890) * phobos#10826 explicitly address at origin in Q1 in beta This modifies the beta function so that it explicitly addresses the case where the input parameters (x,y) are (+0,+0), i.e. next to the origin in the first quadrant. This is already implicitly handled, but explicitly handling it will be make the algoritm clearer when it is extended to address the cases where x is very small and y is very small or very large. Since the cases are numbered, I had to renumber the cases. (Maybe I shouldn't have numbered them originally.) * phobos#10826 support Q1, near origin or very large This adds support for the cases when (x,y) is in the first quadrant and near the origin or the larger of x and y is very large * phobos#10826: change NaN handling behavior of beta This changes the NaN handling behavior of beta to be the same as that of the + operator, i.e., when both input arguments are NaN, the one with the larger payload is returned. * phobos#10826: apply symmetry to entire beta alogrithm
`getNaNPayload(x)` returns a value even if `x` is not NaN, so it is up to the caller to verify that `x` is a NaN before calling `getNaNPayload(x)`. This means it is not a good option for determining for determining which of a set of values has the largest NaN payload when it is only known that at least one value is NaN. `cmp(x, y)` can be used. since to orders -NaN as before -infinity and NaN as after infinity. When two NaN with the same sign are compared, the one with the larger payload is considered larger. This means that `cmp(abs(x), abx(y))` will find the NaN with the larger payload when it is only known that at least one of `x` or `y` is NaN.
'Deprecation: cannot return non-zero compile-time value from `opApply`' Hit e.g. when compiling the unittests.
_d_toObject has been made public in object.d, so (incompatible) forward declaration no longer necessary
This addresses phobos#10920. Adapted the existing function igammaTemmeLarge os that it supports gammaIncomplete as well as its complement gammaIncompleteCompl. As part of this adaptation, log(sigma+1) was replaced with log1p(sigma), since Temme's alorithm requires a to be close to x, which means that sigma is close to 0, making log(sigma+1) imprecise. gammaIncomplete was then modified to use igammaTemmeLarge when x is much larger than 1 and a is near x.
…e it for redBlackTree() functions too (dlang#10951) PR dlang#10792 changed the constraint to allow const-ref predicates too, using a lambda - which seems to have a very bad effect on attributes inference. Avoiding the lambda and using `std.traits.lvalueOf()` instead seems to work better. Also update the template constraints of the free-standing `redBlackTree()` functions, which were forgotten in dlang#10792.
Contributor
|
Thanks for your pull request, @ibuclaw! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
getrandom()backwards compatibility shim (getrandom()backwards compatibility shim #10741)getrandom()backwards compatibility shim (Polishgetrandom()backwards compatibility shim #10757)InPlaceAppender(Introduce low-overheadInPlaceAppender#8789)"std.array.d: Use template_d_newarrayU{,Trace}(std.array.d: Use template `_d_newarrayU{,Trace} #10819)lessand use it for redBlackTree() functions too ([stable] std.container.rbtree: Refactor template constraint wrt.lessand use it for redBlackTree() functions too #10951)