Modular C
C◼real◼float◼sumprod: symbols inserted from C◼snippet◼sum.
+ Collaboration diagram for C◼real◼float◼sumprod: symbols inserted from C◼snippet◼sum.:
C◼real◼float C◼real◼float◼sumv (__size n, C◼real◼float volatile arr[n])
 Perform cumulative operation on array arr of length n. More...
 
C◼real◼float C◼real◼float◼subv (__size n, C◼real◼float volatile arr[n])
 Perform cumulative operation on array arr of length n. More...
 
C◼real◼float C◼real◼float◼prodv (__size n, C◼real◼float volatile arr[n])
 Perform cumulative operation on array arr of length n. More...
 
C◼real◼float C◼real◼float◼divv (__size n, C◼real◼float volatile arr[n])
 Perform cumulative operation on array arr of length n. More...
 
C◼real◼float C◼real◼float◼minus (C◼real◼float x)
 Return the negation of x. More...
 
C◼real◼float C◼real◼float◼recip (C◼real◼float x)
 Return the inverse of x. More...
 
C◼real◼float C◼real◼float◼square (C◼real◼float x)
 Return the square of x. More...
 
#define C◼real◼float◼sum(...)   C◼real◼float◼sumv(C◼snippet◼sum◼ALEN(C◼real◼float, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼real◼float, __VA_ARGS__))
 Perform cumulative operation on the arguments. More...
 
#define C◼real◼float◼sub(...)   C◼real◼float◼subv(C◼snippet◼sum◼ALEN(C◼real◼float, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼real◼float, __VA_ARGS__))
 Perform cumulative operation on the arguments. More...
 
#define C◼real◼float◼prod(...)   C◼real◼float◼prodv(C◼snippet◼sum◼ALEN(C◼real◼float, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼real◼float, __VA_ARGS__))
 Perform cumulative operation on the arguments. More...
 
#define C◼real◼float◼div(...)   C◼real◼float◼divv(C◼snippet◼sum◼ALEN(C◼real◼float, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼real◼float, __VA_ARGS__))
 Perform cumulative operation on the arguments. More...
 

Detailed Description

See also
C◼snippet◼sum snippet: identifiers inserted directly to an importer for details

This import does not fill any slots.

Macro Definition Documentation

§ C◼real◼float◼div

#define C◼real◼float◼div (   ...)    C◼real◼float◼divv(C◼snippet◼sum◼ALEN(C◼real◼float, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼real◼float, __VA_ARGS__))

Perform cumulative operation on the arguments.

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

§ C◼real◼float◼prod

#define C◼real◼float◼prod (   ...)    C◼real◼float◼prodv(C◼snippet◼sum◼ALEN(C◼real◼float, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼real◼float, __VA_ARGS__))

Perform cumulative operation on the arguments.

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

§ C◼real◼float◼sub

#define C◼real◼float◼sub (   ...)    C◼real◼float◼subv(C◼snippet◼sum◼ALEN(C◼real◼float, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼real◼float, __VA_ARGS__))

Perform cumulative operation on the arguments.

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

§ C◼real◼float◼sum

#define C◼real◼float◼sum (   ...)    C◼real◼float◼sumv(C◼snippet◼sum◼ALEN(C◼real◼float, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼real◼float, __VA_ARGS__))

Perform cumulative operation on the arguments.

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

Function Documentation

§ C◼real◼float◼divv()

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

Perform cumulative operation on array arr of length n.

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

1036  {
1037 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1038  C◼real◼float ret = arr[0];
1039  for (__size i = 1; i < n; ++i)
1040  ret C◼snippet◼sum◼divOp arr[i];
1041  return ret;
1042 }
#define C◼snippet◼sum◼divOp
Definition: C-snippet-sum.c:53
float C◼real◼float
Definition: C-real-float.c:731

§ C◼real◼float◼minus()

C◼real◼float C◼real◼float◼minus ( C◼real◼float  x)
inline

Return the negation of x.

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

1055  {
1056 #line 49 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1057  return -x;
1058 }

§ C◼real◼float◼prodv()

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

Perform cumulative operation on array arr of length n.

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

1016  {
1017 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1018  C◼real◼float ret = arr[0];
1019  for (__size i = 1; i < n; ++i)
1020  ret C◼snippet◼sum◼prodOp arr[i];
1021  return ret;
1022 }
#define C◼snippet◼sum◼prodOp
Definition: C-snippet-sum.c:52
float C◼real◼float
Definition: C-real-float.c:731

§ C◼real◼float◼recip()

C◼real◼float C◼real◼float◼recip ( C◼real◼float  x)
inline

Return the inverse of x.

This computes floating point inverse of x, but then returns a value of type T. This makes only sense for floating point types, at the moment.

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

1068  {
1069 #line 61 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1070  return 1.0f/x;
1071 }

§ C◼real◼float◼square()

C◼real◼float C◼real◼float◼square ( C◼real◼float  x)
inline

Return the square of x.

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

References C◼real◼float◼_MODULE_CON.

1077  {
1078 #line 69 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1079  return x*x;
1080 }

§ C◼real◼float◼subv()

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

Perform cumulative operation on array arr of length n.

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

996  {
997 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
998  C◼real◼float ret = arr[0];
999  for (__size i = 1; i < n; ++i)
1000  ret C◼snippet◼sum◼subOp arr[i];
1001  return ret;
1002 }
#define C◼snippet◼sum◼subOp
Definition: C-snippet-sum.c:51
float C◼real◼float
Definition: C-real-float.c:731

§ C◼real◼float◼sumv()

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

Perform cumulative operation on array arr of length n.

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

976  {
977 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
978  C◼real◼float ret = arr[0];
979  for (__size i = 1; i < n; ++i)
980  ret C◼snippet◼sum◼sumOp arr[i];
981  return ret;
982 }
#define C◼snippet◼sum◼sumOp
Definition: C-snippet-sum.c:50
float C◼real◼float
Definition: C-real-float.c:731