Stumbled over this when looking for MASTER and took the opportunity to update 
it.
Committed as r16-5403-ga286685f63a56d.

Tobias
commit a286685f63a56d8cc22211cbefbb4680838c8226
Author: Tobias Burnus <[email protected]>
Date:   Tue Nov 18 23:10:21 2025 +0100

    libgomp.texi: Update MASTER/MASKED entry in the libgomp ABI section
    
    libgomp/
            * libgomp.texi (The libgomp ABI): Update MASTER section by
            also covering MASKED.

diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi
index e08df90bc54..a3b33fd5e07 100644
--- a/libgomp/libgomp.texi
+++ b/libgomp/libgomp.texi
@@ -7473,7 +7473,7 @@ The following sections present notes on the external ABI as
 presented by libgomp.  Only maintainers should need them.
 
 @menu
-* Implementing MASTER construct::
+* Implementing MASKED and MASTER construct::
 * Implementing CRITICAL construct::
 * Implementing ATOMIC construct::
 * Implementing FLUSH construct::
@@ -7491,16 +7491,19 @@ presented by libgomp.  Only maintainers should need them.
 @end menu
 
 
-@node Implementing MASTER construct
-@section Implementing MASTER construct
+@node Implementing MASKED and MASTER construct
+@section Implementing MASKED and MASTER construct
 
 @smallexample
-if (omp_get_thread_num () == 0)
+if (omp_get_thread_num () == thread_num)
   block
 @end smallexample
 
+Hereby, @var{thread_num} has the value of the argument to the @code{filter}
+clause or zero if not specified.
+
 Alternately, we generate two copies of the parallel subfunction
-and only include this in the version run by the primary thread.
+and only include this in the version run by the @var{thread_num} thread.
 Surely this is not worthwhile though...
 
 

Reply via email to