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

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

Compute the minimum of the argument list.

Definition at line 901 of file C-real-ldouble.c.

§ C◼real◼ldouble◼min

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

Compute the minimum of the argument list.

Definition at line 881 of file C-real-ldouble.c.

Function Documentation

§ C◼real◼ldouble◼maxv()

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

Compute the minimum value of array arr.

Definition at line 887 of file C-real-ldouble.c.

887  {
888 #line 39 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
889  C◼real◼ldouble ret = arr[0];
890  for (__size i = 1; i < n; ++i) {
891 #line 41 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
892  C◼real◼ldouble val = arr[i];
893  if (val > ret) ret = val;
894  }
895  return ret;
896 }
C◼ldouble C◼real◼ldouble
Definition: C-math.c:402

§ C◼real◼ldouble◼minv()

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

Compute the minimum value of array arr.

Definition at line 867 of file C-real-ldouble.c.

867  {
868 #line 21 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
869  C◼real◼ldouble ret = arr[0];
870  for (__size i = 1; i < n; ++i) {
871 #line 23 "/home/gustedt/build/cmod/C/C-snippet-minmax.X"
872  C◼real◼ldouble val = arr[i];
873  if (val < ret) ret = val;
874  }
875  return ret;
876 }
C◼ldouble C◼real◼ldouble
Definition: C-math.c:402