Modular C
C◼ptrdiff◼minmax: symbols inserted from C◼snippet◼minmax.
+ Collaboration diagram for C◼ptrdiff◼minmax: symbols inserted from C◼snippet◼minmax.:
C◼ptrdiff C◼ptrdiff◼minv (__size n, C◼ptrdiff volatile arr[n])
 Compute the minimum value of array arr. More...
 
C◼ptrdiff C◼ptrdiff◼maxv (__size n, C◼ptrdiff volatile arr[n])
 Compute the minimum value of array arr. More...
 
#define C◼ptrdiff◼min(...)   C◼ptrdiff◼minv(C◼snippet◼minmax◼ALEN(C◼ptrdiff, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼ptrdiff, __VA_ARGS__))
 Compute the minimum of the argument list. More...
 
#define C◼ptrdiff◼max(...)   C◼ptrdiff◼maxv(C◼snippet◼minmax◼ALEN(C◼ptrdiff, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼ptrdiff, __VA_ARGS__))
 Compute the minimum of the argument list. More...
 

Detailed Description

See also
C◼snippet◼minmax snippet: identifiers inserted directly to an importer for details

This import does not fill any slots.

Macro Definition Documentation

§ C◼ptrdiff◼max

#define C◼ptrdiff◼max (   ...)    C◼ptrdiff◼maxv(C◼snippet◼minmax◼ALEN(C◼ptrdiff, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼ptrdiff, __VA_ARGS__))

Compute the minimum of the argument list.

Definition at line 191 of file C-ptrdiff.c.

§ C◼ptrdiff◼min

#define C◼ptrdiff◼min (   ...)    C◼ptrdiff◼minv(C◼snippet◼minmax◼ALEN(C◼ptrdiff, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼ptrdiff, __VA_ARGS__))

Compute the minimum of the argument list.

Definition at line 171 of file C-ptrdiff.c.

Function Documentation

§ C◼ptrdiff◼maxv()

C◼ptrdiff C◼ptrdiff◼maxv ( __size  n,
C◼ptrdiff volatile  arr[n] 
)
inline

Compute the minimum value of array arr.

Definition at line 177 of file C-ptrdiff.c.

177  {
178 #line 39 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
179  C◼ptrdiff ret = arr[0];
180  for (__size i = 1; i < n; ++i) {
181 #line 41 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
182  C◼ptrdiff val = arr[i];
183  if (val > ret) ret = val;
184  }
185  return ret;
186 }
C◼ptrdiff C◼ptrdiff
Definition: C-is.c:143

§ C◼ptrdiff◼minv()

C◼ptrdiff C◼ptrdiff◼minv ( __size  n,
C◼ptrdiff volatile  arr[n] 
)
inline

Compute the minimum value of array arr.

Definition at line 157 of file C-ptrdiff.c.

157  {
158 #line 21 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
159  C◼ptrdiff ret = arr[0];
160  for (__size i = 1; i < n; ++i) {
161 #line 23 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
162  C◼ptrdiff val = arr[i];
163  if (val < ret) ret = val;
164  }
165  return ret;
166 }
C◼ptrdiff C◼ptrdiff
Definition: C-is.c:143