Skip to content

Commit d0fe196

Browse files
Tyler WhitneyTyler Whitney
authored andcommitted
fix some oversights from an earlier commit
1 parent 6aba29a commit d0fe196

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

docs/c-runtime-library/reference/abs-labs-llabs-abs64.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ The **abs**, **labs**, **llabs** and **_abs64** functions return the absolute va
4242

4343
## Remarks
4444

45-
Because C++ allows overloading, you can call overloads of **abs** that take and return **`long`**, **`long long`**, **`float`**, **`double`**, and **`long double`** values. These overloads are defined in the \<cmath> header. In a C program, unless you are using the \<tgmath.h> macro to call this function, **abs** always takes and returns an **`int`**.
45+
Because C++ allows overloading, you can call overloads of **abs** that take and return **`long`**, **`long long`**, **`float`**, **`double`**, and **`long double`** values. These overloads are defined in the \<cmath> header. In a C program, **abs** always takes and returns an **`int`**.
4646

47-
**Microsoft-specific**: Because the range of negative integers that can be represented by using any integral type is larger than the range of positive integers that can be represented by using that type, it's possible to supply an argument to these functions that cant be converted. If the absolute value of the argument cannot be represented by the return type, the **abs** functions return the argument value unchanged. Specifically, `abs(INT_MIN)` returns `INT_MIN`, `labs(LONG_MIN)` returns `LONG_MIN`, `llabs(LLONG_MIN)` returns `LLONG_MIN`, and `_abs64(_I64_MIN)` returns `_I64_MIN`. This means that the **abs** functions cannot be used to guarantee a positive value.
47+
**Microsoft-specific**: Because the range of negative integers that can be represented by using any integral type is larger than the range of positive integers that can be represented by using that type, it's possible to supply an argument to these functions that can't be converted. If the absolute value of the argument cannot be represented by the return type, the **abs** functions return the argument value unchanged. Specifically, `abs(INT_MIN)` returns `INT_MIN`, `labs(LONG_MIN)` returns `LONG_MIN`, `llabs(LLONG_MIN)` returns `LLONG_MIN`, and `_abs64(_I64_MIN)` returns `_I64_MIN`. This means that the **abs** functions cannot be used to guarantee a positive value.
4848

4949
## Requirements
5050

docs/c-runtime-library/reference/cbrt-cbrtf-cbrtl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ float cbrtf(
3232
long double cbrtl(
3333
long double x
3434
);
35-
#define cbrtl(X) // Requires C11 or higher
35+
#define cbrt(X) // Requires C11 or higher
3636
```
3737
3838
### Parameters

docs/c-runtime-library/reference/cexp-cexpf-cexpl.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Compute the base-e exponential of a complex number.
2020
_Dcomplex cexp( _Dcomplex z );
2121
_Fcomplex cexpf( _Fcomplex z );
2222
_Lcomplex cexpl( _Lcomplex z );
23-
#define cexp(X) // Requires C11 or higher
2423

2524
_Fcomplex cexp( _Fcomplex z ); // C++ only
2625
_Lcomplex cexp( _Lcomplex z ); // C++ only
@@ -49,7 +48,7 @@ For compatibility information, see [Compatibility](../../c-runtime-library/compa
4948
5049
## See also
5150
52-
[Alphabetical Function Reference](crt-alphabetical-function-reference.md)<br/>
53-
[cpow, cpowf, cpowl](cpow-cpowf-cpowl.md)<br/>
54-
[clog10, clog10f, clog10l](clog10-clog10f-clog10l.md)<br/>
55-
[clog, clogf, clogl](clog-clogf-clogl.md)<br/>
51+
[Alphabetical Function Reference](crt-alphabetical-function-reference.md)\
52+
[cpow, cpowf, cpowl](cpow-cpowf-cpowl.md)\
53+
[clog10, clog10f, clog10l](clog10-clog10f-clog10l.md)\
54+
[clog, clogf, clogl](clog-clogf-clogl.md)

docs/c-runtime-library/reference/tanh-tanhf-tanhl.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Calculates the hyperbolic tangent.
1919
double tanh( double x );
2020
float tanhf( float x );
2121
long double tanhl( long double x );
22-
long double tanhl( long double x );
2322
#define tanh(x) // Requires C11 or higher
2423
```
2524

0 commit comments

Comments
 (0)