Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jun 13, 2024
1 parent ebb0f65 commit 1a4bd97
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3910,6 +3910,16 @@ This release closes the following issue:

<!-- /.features -->

<section class="bug-fixes">

##### Bug Fixes

- [`ae92cf0`](https://github.com/stdlib-js/stdlib/commit/ae92cf0e2ff55d9e0d490ece6bd32eb8da0506a9) - use significand mask in `math/base/special/rempio2` [(##2366)](#2366)

</section>

<!-- /.bug-fixes -->

</details>

</section>
Expand Down Expand Up @@ -4518,6 +4528,7 @@ A total of 26 people contributed to this release. Thank you to the following con

<details>

- [`ae92cf0`](https://github.com/stdlib-js/stdlib/commit/ae92cf0e2ff55d9e0d490ece6bd32eb8da0506a9) - **fix:** use significand mask in `math/base/special/rempio2` [(##2366)](#2366) _(by Gunj Joshi)_
- [`9df1610`](https://github.com/stdlib-js/stdlib/commit/9df16105aa2d89808d3395c610334ca9cce35b3c) - **docs:** remove long comment [(##2634)](#2634) _(by Gunj Joshi)_
- [`3cf2e89`](https://github.com/stdlib-js/stdlib/commit/3cf2e897adf5128f94bd7279e88ca9d42dfe7caa) - **feat:** add C implementation for `math/base/special/coversin` [(##2361)](#2361) _(by Gunj Joshi)_
- [`34bc79c`](https://github.com/stdlib-js/stdlib/commit/34bc79cf154e0c82320c4a60c2cc805434a4b6e6) - **chore:** delete extra repl.txt file _(by Philipp Burckhardt)_
Expand Down
6 changes: 3 additions & 3 deletions base/special/rempio2/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@stdlib/number/float64/base/from-words",
"@stdlib/constants/float64/high-word-abs-mask",
"@stdlib/constants/float64/high-word-exponent-mask",
"@stdlib/constants/float64/high-word-sign-mask"
"@stdlib/constants/float64/high-word-significand-mask"
]
},
{
Expand All @@ -71,7 +71,7 @@
"@stdlib/number/float64/base/from-words",
"@stdlib/constants/float64/high-word-abs-mask",
"@stdlib/constants/float64/high-word-exponent-mask",
"@stdlib/constants/float64/high-word-sign-mask"
"@stdlib/constants/float64/high-word-significand-mask"
]
},
{
Expand All @@ -93,7 +93,7 @@
"@stdlib/number/float64/base/from-words",
"@stdlib/constants/float64/high-word-abs-mask",
"@stdlib/constants/float64/high-word-exponent-mask",
"@stdlib/constants/float64/high-word-sign-mask"
"@stdlib/constants/float64/high-word-significand-mask"
]
}
]
Expand Down
4 changes: 2 additions & 2 deletions base/special/rempio2/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "stdlib/number/float64/base/from_words.h"
#include "stdlib/constants/float64/high_word_abs_mask.h"
#include "stdlib/constants/float64/high_word_exponent_mask.h"
#include "stdlib/constants/float64/high_word_sign_mask.h"
#include "stdlib/constants/float64/high_word_significand_mask.h"
#include <stdint.h>

static const double ZERO = 0.00000000000000000000e+00; // 0x00000000, 0x00000000
Expand Down Expand Up @@ -488,7 +488,7 @@ int32_t stdlib_base_rempio2( const double x, double *rem1, double *rem2 ) {
// Case: |x| ~<= 5π/4
if ( ix <= FIVE_PIO4_HIGH_WORD ) {
// Case: |x| ~= π/2 or π
if ( ( ix & STDLIB_CONSTANT_FLOAT64_HIGH_WORD_SIGN_MASK ) == PI_HIGH_WORD_SIGNIFICAND ) {
if ( ( ix & STDLIB_CONSTANT_FLOAT64_HIGH_WORD_SIGNIFICAND_MASK ) == PI_HIGH_WORD_SIGNIFICAND ) {
// Cancellation => use medium case
goto medium;
}
Expand Down

0 comments on commit 1a4bd97

Please sign in to comment.