Date-Time Computations
I have systems where native 64bit integers are not available.
The 64bit data storage is a structure containing a 32-bit-high
and 32-bit-low integers.
I would like to implement 64bit values on 32bit platforms. The
pressing need is to provide a Joda-Time or JDK date-time capability
in C/C++ for XPath libraries written in C++. Calendar operations
are currently a big frustration on 32bit platforms.
Can such a 32bit composite structure be mapped and used as the
data for a 64bit microsecond clock value?
Are there arithmetic functions available that can simulate 64bit
arithmetic on the composite structure when native 64bit is not
available to the platform?
Integer arithmetic operation functions (Add, Subtract, Multiply,
Divide, Remainder, Modulo) should be capable of operating on
such composite values. The native 64bit operations should be
used if available to the platform. The simulated operations
should be used if 64bit integers are actually a composite
structure of two 32bit values.
Sincerely,
Steven J. Hathaway