Skip to content

Commit a2d655c

Browse files
TylerMSFTTylerMSFT
authored andcommitted
Merge branch 'main' of https://github.com/MicrosoftDocs/cpp-docs-pr into alttext
2 parents 163afe9 + 0c349e1 commit a2d655c

2 files changed

Lines changed: 20 additions & 23 deletions

File tree

docs/atl/reference/compiler-options-macros.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: "Learn more about: Compiler Options Macros"
33
title: "Compiler Options Macros"
44
ms.date: "08/19/2019"
5-
f1_keywords: ["_ATL_ALL_WARNINGS", "_ATL_APARTMENT_THREADED", "_ATL_CSTRING_EXPLICIT_CONSTRUCTORS ", "_ATL_ENABLE_PTM_WARNING", "_ATL_FREE_THREADED", "_ATL_MULTI_THREADED", "_ATL_NO_AUTOMATIC_NAMESPACE", "_ATL_NO_COM_SUPPORT", "ATL_NO_VTABLE", "ATL_NOINLINE", "_ATL_SINGLE_THREADED"]
5+
f1_keywords: ["_ATL_ALL_WARNINGS", "_ATL_APARTMENT_THREADED", "_ATL_CSTRING_EXPLICIT_CONSTRUCTORS ", "_ATL_ENABLE_PTM_WARNING", "_ATL_FREE_THREADED", "_ATL_MODULES", "_ATL_MULTI_THREADED", "_ATL_NO_AUTOMATIC_NAMESPACE", "_ATL_NO_COM_SUPPORT", "ATL_NO_VTABLE", "ATL_NOINLINE", "_ATL_SINGLE_THREADED"]
66
helpviewer_keywords: ["compiler options, macros"]
77
ms.assetid: a869adc6-b3de-4299-b040-9ae20b45f82c
88
---
@@ -17,6 +17,7 @@ These macros control specific compiler features.
1717
|[_ATL_CSTRING_EXPLICIT_CONSTRUCTORS](#_atl_cstring_explicit_constructors)|Makes certain `CString` constructors explicit, preventing any unintentional conversions.|
1818
|[_ATL_ENABLE_PTM_WARNING](#_atl_enable_ptm_warning)|Define this macro to require C++ standard syntax. It generates the C4867 compiler error when non-standard syntax is used to initialize a pointer to a member function.|
1919
|[_ATL_FREE_THREADED](#_atl_free_threaded)|Define if one or more of your objects use free or neutral threading.|
20+
|[_ATL_MODULES](#_ATL_MODULES)|Allows you to compile ATL projects with [permissive-](../../build/reference/permissive-standards-conformance.md) and use ATL with [C++ modules](../../cpp/modules-cpp.md).|
2021
|[_ATL_MULTI_THREADED](#_atl_multi_threaded)|A symbol that indicates the project will have objects that are marked as Both, Free or Neutral. The macro [_ATL_FREE_THREADED](#_atl_free_threaded) should be used instead.|
2122
|[_ATL_NO_AUTOMATIC_NAMESPACE](#_atl_no_automatic_namespace)|A symbol that prevents the default use of namespace as ATL.|
2223
|[_ATL_NO_COM_SUPPORT](#_atl_no_com_support)|A symbol that prevents COM-related code from being compiled with your project.|
@@ -122,6 +123,14 @@ _ATL_FREE_THREADED
122123

123124
Specifies free threading. Free threading is equivalent to a multithread apartment model. See [Specifying the Project's Threading Model](../../atl/specifying-the-threading-model-for-a-project-atl.md) for other threading options, and [Options, ATL Simple Object Wizard](../../atl/reference/options-atl-simple-object-wizard.md) for a description of the threading models available for an ATL object.
124125

126+
## <a name="_ATL_MODULES"></a> `_ATLMODULES`
127+
128+
Allows you to compile ATL projects with [permissive-](../../build/reference/permissive-standards-conformance.md) and use ATL with [C++ modules](../../cpp/modules-cpp.md).
129+
130+
```
131+
_ATL_MODULES
132+
```
133+
125134
## <a name="_atl_multi_threaded"></a> _ATL_MULTI_THREADED
126135

127136
A symbol that indicates the project will have objects that are marked as Both, Free or Neutral.

docs/c-runtime-library/reference/log1p-log1pf-log1pl2.md

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: "log1p, log1pf, log1pl2"
33
description: "API reference for log1p, log1pf, log1pl2; which compute the natural logarithm of 1 plus the specified value."
4-
ms.date: "9/1/2020"
4+
ms.date: "2/1/2023"
55
api_name: ["log1p", "log1pf", "log1pl", "_o_log1p", "_o_log1pf", "_o_log1pl"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-math-l1-1-0.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["log1p", "log1pf", "log1pl", "math/log1p", "math/log1pf", "math/log1pl"]
1010
helpviewer_keywords: ["log1p function", "log1pf function", "log1pl function"]
11-
ms.assetid: a40d965d-b4f6-42f4-ba27-2395546f7c12
1211
---
1312
# `log1p`, `log1pf`, `log1pl`
1413

@@ -17,25 +16,14 @@ Computes the natural logarithm of 1 plus the specified value.
1716
## Syntax
1817

1918
```C
20-
double log1p(
21-
double x
22-
);
23-
float log1pf(
24-
float x
25-
);
26-
long double log1pl(
27-
long double x
28-
);
19+
double log1p(double x);
20+
float log1pf(float x);
21+
long double log1pl(long double x);
2922

3023
#define log1p(X) // Requires C11 or higher
3124

32-
float log1p(
33-
float x
34-
); //C++ only
35-
36-
long double log1p(
37-
long double x
38-
); //C++ only
25+
float log1p(float x); //C++ only
26+
long double log1p(long double x); //C++ only
3927
```
4028
4129
### Parameters
@@ -68,18 +56,18 @@ The **`log1p`** functions may be more accurate than using `log(x + 1)` when *`x`
6856
6957
Because C++ allows overloading, you can call overloads of **`log1p`** that take and return **`float`** and **`long double`** types. In a C program, unless you're using the \<tgmath.h> macro to call this function, **`log1p`** always takes and returns a **`double`**.
7058
71-
If you use the \<tgmath.h> `log1p()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../tgmath.md) for details.
59+
If you use the `<tgmath.h>` `log1p()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../tgmath.md) for details.
7260
73-
If *`x`* is a natural number, this function returns the logarithm of the factorial of (*`x`* - 1).
61+
Where *`x`* is a natural number, this function returns the base e logarithm of *`x`* + 1.
7462
7563
By default, this function's global state is scoped to the application. To change this behavior, see [Global state in the CRT](../global-state.md).
7664
7765
## Requirements
7866
7967
| Function | C header | C++ header |
8068
|---|---|---|
81-
| **`log1p`**, **`log1pf`**, **`log1pl`** | \<math.h> | \<cmath> |
82-
| **`log1p`** macro | \<tgmath.h> | |
69+
| **`log1p`**, **`log1pf`**, **`log1pl`** | `<math.h>` | `<cmath>` |
70+
| **`log1p`** macro | `<tgmath.h>` | |
8371
8472
For more compatibility information, see [Compatibility](../compatibility.md).
8573

0 commit comments

Comments
 (0)