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

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

Perform cumulative operation on the arguments.

Definition at line 325 of file C-ptrdiff.c.

§ C◼ptrdiff◼prod

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

Perform cumulative operation on the arguments.

Definition at line 305 of file C-ptrdiff.c.

§ C◼ptrdiff◼sub

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

Perform cumulative operation on the arguments.

Definition at line 285 of file C-ptrdiff.c.

§ C◼ptrdiff◼sum

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

Perform cumulative operation on the arguments.

Definition at line 265 of file C-ptrdiff.c.

Function Documentation

§ C◼ptrdiff◼divv()

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

Perform cumulative operation on array arr of length n.

Definition at line 314 of file C-ptrdiff.c.

314  {
315 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
316  C◼ptrdiff ret = arr[0];
317  for (__size i = 1; i < n; ++i)
318  ret C◼snippet◼sum◼divOp arr[i];
319  return ret;
320 }
C◼ptrdiff C◼ptrdiff
Definition: C-is.c:143
#define C◼snippet◼sum◼divOp
Definition: C-snippet-sum.c:53

§ C◼ptrdiff◼minus()

C◼ptrdiff C◼ptrdiff◼minus ( C◼ptrdiff  x)
inline

Return the negation of x.

Definition at line 333 of file C-ptrdiff.c.

333  {
334 #line 49 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
335  return -x;
336 }

§ C◼ptrdiff◼prodv()

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

Perform cumulative operation on array arr of length n.

Definition at line 294 of file C-ptrdiff.c.

294  {
295 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
296  C◼ptrdiff ret = arr[0];
297  for (__size i = 1; i < n; ++i)
298  ret C◼snippet◼sum◼prodOp arr[i];
299  return ret;
300 }
C◼ptrdiff C◼ptrdiff
Definition: C-is.c:143
#define C◼snippet◼sum◼prodOp
Definition: C-snippet-sum.c:52

§ C◼ptrdiff◼recip()

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

346  {
347 #line 61 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
348  return 1.0f/x;
349 }

§ C◼ptrdiff◼square()

C◼ptrdiff C◼ptrdiff◼square ( C◼ptrdiff  x)
inline

Return the square of x.

Definition at line 355 of file C-ptrdiff.c.

References C◼ptrdiff◼_MODULE_CON.

355  {
356 #line 69 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
357  return x*x;
358 }

§ C◼ptrdiff◼subv()

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

Perform cumulative operation on array arr of length n.

Definition at line 274 of file C-ptrdiff.c.

274  {
275 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
276  C◼ptrdiff ret = arr[0];
277  for (__size i = 1; i < n; ++i)
278  ret C◼snippet◼sum◼subOp arr[i];
279  return ret;
280 }
C◼ptrdiff C◼ptrdiff
Definition: C-is.c:143
#define C◼snippet◼sum◼subOp
Definition: C-snippet-sum.c:51

§ C◼ptrdiff◼sumv()

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

Perform cumulative operation on array arr of length n.

Definition at line 254 of file C-ptrdiff.c.

254  {
255 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
256  C◼ptrdiff ret = arr[0];
257  for (__size i = 1; i < n; ++i)
258  ret C◼snippet◼sum◼sumOp arr[i];
259  return ret;
260 }
C◼ptrdiff C◼ptrdiff
Definition: C-is.c:143
#define C◼snippet◼sum◼sumOp
Definition: C-snippet-sum.c:50