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

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

Compute the minimum of the argument list.

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

§ C◼llong◼min

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

Compute the minimum of the argument list.

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

Function Documentation

§ C◼llong◼maxv()

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

Compute the minimum value of array arr.

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

202  {
203 #line 39 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
204  C◼llong 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◼llong val = arr[i];
208  if (val > ret) ret = val;
209  }
210  return ret;
211 }
C◼llong C◼llong

§ C◼llong◼minv()

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

Compute the minimum value of array arr.

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

182  {
183 #line 21 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
184  C◼llong 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◼llong val = arr[i];
188  if (val < ret) ret = val;
189  }
190  return ret;
191 }
C◼llong C◼llong