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

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

Perform cumulative operation on the arguments.

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

§ C◼llong◼prod

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

Perform cumulative operation on the arguments.

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

§ C◼llong◼sub

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

Perform cumulative operation on the arguments.

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

§ C◼llong◼sum

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

Perform cumulative operation on the arguments.

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

Function Documentation

§ C◼llong◼divv()

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

Perform cumulative operation on array arr of length n.

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

339  {
340 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
341  C◼llong ret = arr[0];
342  for (__size i = 1; i < n; ++i)
343  ret C◼snippet◼sum◼divOp arr[i];
344  return ret;
345 }
C◼llong C◼llong
#define C◼snippet◼sum◼divOp
Definition: C-snippet-sum.c:53

§ C◼llong◼minus()

C◼llong C◼llong◼minus ( C◼llong  x)
inline

Return the negation of x.

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

358  {
359 #line 49 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
360  return -x;
361 }

§ C◼llong◼prodv()

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

Perform cumulative operation on array arr of length n.

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

319  {
320 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
321  C◼llong ret = arr[0];
322  for (__size i = 1; i < n; ++i)
323  ret C◼snippet◼sum◼prodOp arr[i];
324  return ret;
325 }
C◼llong C◼llong
#define C◼snippet◼sum◼prodOp
Definition: C-snippet-sum.c:52

§ C◼llong◼recip()

C◼llong C◼llong◼recip ( C◼llong  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 371 of file C-llong.c.

371  {
372 #line 61 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
373  return 1.0f/x;
374 }

§ C◼llong◼square()

C◼llong C◼llong◼square ( C◼llong  x)
inline

Return the square of x.

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

References C◼llong◼_MODULE_CON.

380  {
381 #line 69 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
382  return x*x;
383 }

§ C◼llong◼subv()

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

Perform cumulative operation on array arr of length n.

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

299  {
300 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
301  C◼llong ret = arr[0];
302  for (__size i = 1; i < n; ++i)
303  ret C◼snippet◼sum◼subOp arr[i];
304  return ret;
305 }
C◼llong C◼llong
#define C◼snippet◼sum◼subOp
Definition: C-snippet-sum.c:51

§ C◼llong◼sumv()

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

Perform cumulative operation on array arr of length n.

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

279  {
280 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
281  C◼llong ret = arr[0];
282  for (__size i = 1; i < n; ++i)
283  ret C◼snippet◼sum◼sumOp arr[i];
284  return ret;
285 }
C◼llong C◼llong
#define C◼snippet◼sum◼sumOp
Definition: C-snippet-sum.c:50