CVSROOT: /cvs/directfb
Module name: DirectFB
Changes by: dok 20041109 01:57:34
Modified files:
lib/direct : Makefile.am types.h
Added files:
lib/direct : serial.h
Log message:
Added DirectSerial providing a 64 bit serial number
while the implementation uses two unsigned 32 bit integers.
Measurements have shown that (at least on my Athlon Thunderbird 1.33)
emulating the 64 bit value myself is 50% to 100% faster
than simply using the builtin 64 bit code of the compiler.
The following static inline functions are defined:
- direct_serial_init() initialize serial to zero, set magic
- direct_serial_deinit() right now it only clears the magic
- direct_serial_increase() advance serial number by one
- direct_serial_copy() set serial to the value of another
- direct_serial_update() returns false if the serial is up to date
with another, otherwise returns true
after updating the serial