39 void *p = ::operator
new(
sizeof(
Fix) * n);
40 ptr =
reinterpret_cast<Fix*
>(p);
42 for (
int i = 0; i < n; ++i) {
49 void *p = ::operator
new(
sizeof(
CFix) * n);
50 ptr =
reinterpret_cast<CFix*
>(p);
52 for (
int i = 0; i < n; ++i) {
60 if (
const Fix_Factory *fix_factory_ptr = dynamic_cast<const Fix_Factory*>(&f)) {
62 fix_factory_ptr->create(ptr, n);
67 void *p = ::operator
new(
sizeof(
Fix) * n);
68 ptr =
reinterpret_cast<Fix*
>(p);
69 for (
int i = 0; i < n; i++) {
78 if (
const Fix_Factory *fix_factory_ptr = dynamic_cast<const Fix_Factory*>(&f)) {
80 fix_factory_ptr->create(ptr, n);
85 void *p = ::operator
new(
sizeof(
CFix) * n);
86 ptr =
reinterpret_cast<CFix*
>(p);
87 for (
int i = 0; i < n; i++) {
void create_elements< Fix >(Fix *&ptr, const int n, const Factory &f)
Create an n-length array of Fix using Fix_Factory f.
e_mode emode
Sign encoding mode.
Definitions of a class factory for fixed-point data types Fix and CFix.
Class factory for fixed-point data types Fix and CFix.
q_mode qmode
Quantization mode.
Base class for class factories.
Complex fixed-point data type.
Stat * stat_ptr
Pointer to statistics object.
virtual void create(Fix *&ptr, const int n) const
Create an n-length array of Fix.
o_mode omode
Overflow mode.
Definitions of a complex fixed-point data type CFix.
void create_elements< CFix >(CFix *&ptr, const int n, const Factory &f)
Create an n-length array of CFix using Fix_Factory f.