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

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

Compute the minimum of the argument list.

Definition at line 913 of file C-real-float.c.

§ C◼real◼float◼min

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

Compute the minimum of the argument list.

Definition at line 893 of file C-real-float.c.

Function Documentation

§ C◼real◼float◼maxv()

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

Compute the minimum value of array arr.

Definition at line 899 of file C-real-float.c.

899  {
900 #line 39 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
901  C◼real◼float ret = arr[0];
902  for (__size i = 1; i < n; ++i) {
903 #line 41 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
904  C◼real◼float val = arr[i];
905  if (val > ret) ret = val;
906  }
907  return ret;
908 }
float C◼real◼float
Definition: C-real-float.c:731

§ C◼real◼float◼minv()

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

Compute the minimum value of array arr.

Definition at line 879 of file C-real-float.c.

879  {
880 #line 21 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
881  C◼real◼float ret = arr[0];
882  for (__size i = 1; i < n; ++i) {
883 #line 23 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
884  C◼real◼float val = arr[i];
885  if (val < ret) ret = val;
886  }
887  return ret;
888 }
float C◼real◼float
Definition: C-real-float.c:731