Skip to content

Commit 8666e7b

Browse files
committed
Auto-generated commit
1 parent 881695e commit 8666e7b

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ A total of 46 issues were closed in this release:
504504

505505
<details>
506506

507+
- [`776f485`](https://github.com/stdlib-js/stdlib/commit/776f485c279d4386ad120362393dd0dfdbeca71d) - **docs:** correct parameter descriptions _(by Karan Anand)_
508+
- [`678f471`](https://github.com/stdlib-js/stdlib/commit/678f471830cd4f3cfb1ba07b095a9c6da43a2e59) - **refactor:** remove redundant cast when generating integral part _(by Karan Anand)_
507509
- [`56cd0bf`](https://github.com/stdlib-js/stdlib/commit/56cd0bfb6e3d98349a2062e3ac26668f58ba09bb) - **refactor:** use tuple for return type _(by Karan Anand)_
508510
- [`9972161`](https://github.com/stdlib-js/stdlib/commit/9972161c7c945bf3ab1229fb40129c1107d5918b) - **docs:** replace manual `for` loop in examples _(by Karan Anand)_
509511
- [`8f57742`](https://github.com/stdlib-js/stdlib/commit/8f577423535f8ef0639a0306538771f980af6fbb) - **refactor:** use tuple for return type _(by Karan Anand)_

base/special/modf/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ stdlib_base_modf( 4.0, &integral, &frac );
145145
The function accepts the following arguments:
146146
147147
- **x**: `[in] double` input value.
148-
- **frac**: `[out] double*` destination for the integral part.
149-
- **exp**: `[out] double*` destination for the fractional part.
148+
- **integral**: `[out] float*` destination for the integral part.
149+
- **frac**: `[out] float*` destination for the fractional part.
150150
151151
```c
152152
void stdlib_base_modf( const double x, double *integral, double *frac );

base/special/modf/src/main.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ static const uint32_t ALL_ONES = 4294967295;
3232
* Decomposes a double-precision floating-point number into integral and fractional parts, each having the same type and sign as the input value, and assigns results to a provided output array.
3333
*
3434
* @param x input value
35-
* @param frac destination to store the normalized fraction
36-
* @param integral destination to store the exponent
35+
* @param integral destination pointer for the integral part
36+
* @param frac destination pointer for the fractional part
3737
*
3838
* @example
3939
* double x = 3.141592653589793;
@@ -99,7 +99,6 @@ void stdlib_base_modf( const double x, double* integral, double* frac ) {
9999
high &= ( ~i );
100100

101101
// Generate the integral part:
102-
j = i;
103102
stdlib_base_float64_from_words( high, 0, &j );
104103
*integral = j;
105104
*frac = x - j;
@@ -124,7 +123,6 @@ void stdlib_base_modf( const double x, double* integral, double* frac ) {
124123
low &= ( ~i );
125124

126125
// Generate the integral part:
127-
j = i;
128126
stdlib_base_float64_from_words( high, low, &j );
129127
*integral = j;
130128
*frac = x - j;

0 commit comments

Comments
 (0)