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

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

Compute the minimum of the argument list.

Definition at line 941 of file C-real-double.c.

§ C◼real◼double◼min

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

Compute the minimum of the argument list.

Definition at line 921 of file C-real-double.c.

Function Documentation

§ C◼real◼double◼maxv()

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

Compute the minimum value of array arr.

Definition at line 927 of file C-real-double.c.

927  {
928 #line 39 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
929  C◼real◼double ret = arr[0];
930  for (__size i = 1; i < n; ++i) {
931 #line 41 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
932  C◼real◼double val = arr[i];
933  if (val > ret) ret = val;
934  }
935  return ret;
936 }
double C◼real◼double

§ C◼real◼double◼minv()

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

Compute the minimum value of array arr.

Definition at line 907 of file C-real-double.c.

907  {
908 #line 21 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
909  C◼real◼double ret = arr[0];
910  for (__size i = 1; i < n; ++i) {
911 #line 23 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
912  C◼real◼double val = arr[i];
913  if (val < ret) ret = val;
914  }
915  return ret;
916 }
double C◼real◼double