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 Jul 5, 2024
1 parent 49502ac commit ee62859
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<section class="release" id="unreleased">

## Unreleased (2024-07-04)
## Unreleased (2024-07-05)

<section class="packages">

Expand Down Expand Up @@ -4878,6 +4878,7 @@ A total of 29 people contributed to this release. Thank you to the following con

<details>

- [`457662c`](https://github.com/stdlib-js/stdlib/commit/457662c8e8bcd3ff74edc7d820d882119b40cfbe) - **style:** add linebreak _(by Athan Reines)_
- [`2789eff`](https://github.com/stdlib-js/stdlib/commit/2789eff674a6832e11cb4ec0f8f4090bf05554b2) - **docs:** fix function name in README example [(#2506)](https://github.com/stdlib-js/stdlib/pull/2506) _(by Gunj Joshi)_
- [`82c8ae0`](https://github.com/stdlib-js/stdlib/commit/82c8ae03edea7886ce0f67ca6e1c2a3028ef8fd9) - **feat:** add C implementation for `math/base/special/floor2` _(by Gunj Joshi)_
- [`2f62c39`](https://github.com/stdlib-js/stdlib/commit/2f62c39e03c5445f3cc3b91226453c2eed366013) - **chore:** update package meta data [(##2481)](#2481) _(by stdlib-bot)_
Expand Down
2 changes: 1 addition & 1 deletion base/special/floor2/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "stdlib/constants/float64/min_base2_exponent_subnormal.h"
#include "stdlib/constants/float64/ninf.h"


/**
* Rounds a numeric value to the nearest power of two toward negative infinity.
*
Expand Down Expand Up @@ -55,6 +54,7 @@ double stdlib_base_floor2( const double x ) {
}
// Solve the equation `2^p = x` for `p`:
p = stdlib_base_log2( xc );

// If provided the smallest subnormal, no rounding possible:
if ( p == STDLIB_CONSTANT_FLOAT64_MIN_BASE2_EXPONENT_SUBNORMAL ) {
return xc;
Expand Down

0 comments on commit ee62859

Please sign in to comment.