4 ms·
x87 support may not be the most obscure part of the instruction set. Ther is also hardware support for BCD math in 16 bit amd 32 bit mode. Who uses that anymore
by gmueckl 4mo ago
x87 support may not be the most obscure part of the instruction set. Ther is also hardware support for BCD math in 16 bit amd 32 bit mode. Who uses that anymore?
- ks6g10 4mo agoUnfortunately some exchanges (twse) uses packed BCD encoding.
- Joker_vD 4mo agoBCD allows for insanely fast conversion to and from decimal string representation. And if doing arithmetic in it is only slightly worse than doing it in binary... it may actually be faster on the whole for some workloads.
- gmueckl 4mo agoBut those instructions were dropped in 64 bit mode.
- anamax 4mo agobcd is a reasonable way to do fixed-point decimal arithmetic. binary floating point, let alone IEEE, is almost useless for implementing decimal arithmetic.