[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Representation of Values in Lua/Ravi
- From: Dibyendu Majumdar <mobile@...>
- Date: Sun, 15 Mar 2015 11:20:42 +0000
I posted an idea on how values could be represented to improve
performance for doubles.
I think that this scheme can be extended to allow complex numbers to
So for complex numbers:
first 8 bytes could be a double representing the real part
second 8 bytes could be a double representing the imaginary part
If a value is a not a complex number then the real part will either be
NaN, or if the real part is a double then the imaginary part will be a
I am assuming that NaN tagging approach is considered non-portable /
not ISO C for Lua?