File: complex_internal.h

package info (click to toggle)
drc 3.2.2~dfsg0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,548 kB
  • sloc: ansic: 13,575; cpp: 11,048; sh: 253; makefile: 41
file content (14 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (35)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* Handling of packed complex types... not meant for client consumption.
 */
#ifndef COMPLEX_INTERNAL_H_
#define COMPLEX_INTERNAL_H_

#define VECTOR(a,stride,i) ((a)[(stride)*(i)])
#define REAL(a,stride,i) ((a)[2*(stride)*(i)])
#define IMAG(a,stride,i) ((a)[2*(stride)*(i)+1])

#define REAL0(a) ((a)[0])
#define IMAG0(a) ((a)[1])


#endif /* !COMPLEX_INTERNAL_H_ */