Modular C
C◼long◼minmax: symbols inserted from C◼snippet◼minmax.
+ Collaboration diagram for C◼long◼minmax: symbols inserted from C◼snippet◼minmax.:
C◼long C◼long◼minv (__size n, C◼long volatile arr[n])
 Compute the minimum value of array arr. More...
 
C◼long C◼long◼maxv (__size n, C◼long volatile arr[n])
 Compute the minimum value of array arr. More...
 
#define C◼long◼min(...)   C◼long◼minv(C◼snippet◼minmax◼ALEN(C◼long, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼long, __VA_ARGS__))
 Compute the minimum of the argument list. More...
 
#define C◼long◼max(...)   C◼long◼maxv(C◼snippet◼minmax◼ALEN(C◼long, __VA_ARGS__), C◼snippet◼minmax◼ARRAY(C◼long, __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◼long◼max

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

Compute the minimum of the argument list.

Definition at line 216 of file C-long.c.

§ C◼long◼min

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

Compute the minimum of the argument list.

Definition at line 196 of file C-long.c.

Function Documentation

§ C◼long◼maxv()

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

Compute the minimum value of array arr.

Definition at line 202 of file C-long.c.

202  {
203 #line 39 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
204  C◼long ret = arr[0];
205  for (__size i = 1; i < n; ++i) {
206 #line 41 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
207  C◼long val = arr[i];
208  if (val > ret) ret = val;
209  }
210  return ret;
211 }
long C◼long
Definition: C-long.c:127

§ C◼long◼minv()

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

Compute the minimum value of array arr.

Definition at line 182 of file C-long.c.

182  {
183 #line 21 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
184  C◼long ret = arr[0];
185  for (__size i = 1; i < n; ++i) {
186 #line 23 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
187  C◼long val = arr[i];
188  if (val < ret) ret = val;
189  }
190  return ret;
191 }
long C◼long
Definition: C-long.c:127