www.digitalmars.com         C & C++   DMDScript  

c++ - Re: Complex numbers for DOSX

reply "Nic Tiger" <nictiger progtech.ru> writes:
Hi Walter,

Is it difficult to enable complex number stuff (per C99) in DOSX model
either?

The only problem you mentioned in CTG is the fact that under DOSX
coprocessor may not present.

What about enabling complex number feature for DOSX for CPU target 5
(Pentium) and above? Since P5 all processors have FPU integrated. And if
not, this is problem of developer to provide system-level support for
coprocessor.

What do you think?

Looking forward for your answer,
Nic Tiger.

P.S. By the way, using complex numbers with simplicity you provided is
great!
Dec 26 2002
parent reply "Walter" <walter digitalmars.com> writes:
That means two runtime libraries would have to be supplied. It's doable, but
just a lot of work.

"Nic Tiger" <nictiger progtech.ru> wrote in message
news:aueig0$26ev$1 digitaldaemon.com...
 Hi Walter,

 Is it difficult to enable complex number stuff (per C99) in DOSX model
 either?

 The only problem you mentioned in CTG is the fact that under DOSX
 coprocessor may not present.

 What about enabling complex number feature for DOSX for CPU target 5
 (Pentium) and above? Since P5 all processors have FPU integrated. And if
 not, this is problem of developer to provide system-level support for
 coprocessor.

 What do you think?

 Looking forward for your answer,
 Nic Tiger.

 P.S. By the way, using complex numbers with simplicity you provided is
 great!
Dec 27 2002
parent "Nic Tiger" <nictiger progtech.ru> writes:
Do you mean 2 libraries DOSX and WIN32 or you mean DOSX 5+ and 3+ ?

I think complex number stuff can be separated in different lib (
complex.lib, e.g.) and the only support is needed is from compiler to
compile with -mx -5 (+) using complex. The rest of the standard library
will stay unmodified. Am I right? Or something prevents using this way?

Nic Tiger.

P.S. I have DMC CD with all RTL sources and can help you in porting complex
number stuff from WIN32 library to DOSX library.

"Walter" <walter digitalmars.com> сообщил/сообщила в новостях следующее:
news:auj9as$2ik6$2 digitaldaemon.com...
 That means two runtime libraries would have to be supplied. It's doable,
but
 just a lot of work.

 "Nic Tiger" <nictiger progtech.ru> wrote in message
 news:aueig0$26ev$1 digitaldaemon.com...
 Hi Walter,

 Is it difficult to enable complex number stuff (per C99) in DOSX model
 either?

 The only problem you mentioned in CTG is the fact that under DOSX
 coprocessor may not present.

 What about enabling complex number feature for DOSX for CPU target 5
 (Pentium) and above? Since P5 all processors have FPU integrated. And if
 not, this is problem of developer to provide system-level support for
 coprocessor.

 What do you think?

 Looking forward for your answer,
 Nic Tiger.

 P.S. By the way, using complex numbers with simplicity you provided is
 great!
Dec 29 2002