hardware support for decimal primitive data type

  • Thread starter Thread starter Neil Zanella
  • Start date Start date
N

Neil Zanella

Hello all,

I notice that C# supports a special 'decimal' data type not present in
the classical C and C++ languages. Such a data type was added to support
monetary calculations. I wonder whether most platforms actually provide
hardware support for this new data type. If so, then I am somewhat
curious about how long ago the popular Pentium family of processors
has began including support for such data type in its hardware.

Thanks,

Neil
 
Neil,
I wonder whether most platforms actually provide
hardware support for this new data type.

I don't think any platform does. Decimal is implemented as a struct
consisting of four ints.



Mattias
 
Back
Top