cdef object cload(self, const char *data, size_t length):
cdef int64_t val = endian.be64toh((<uint64_t *>data)[0])
- cdef long micros, secs, days
+ cdef int64_t micros, secs, days
# Work only with positive values as the cdivision behaves differently
# with negative values, and cdivision=False adds overhead.
cdef object cload(self, const char *data, size_t length):
cdef int64_t val = endian.be64toh((<uint64_t *>data)[0])
- cdef long micros, secs, days
+ cdef int64_t micros, secs, days
# Work only with positive values as the cdivision behaves differently
# with negative values, and cdivision=False adds overhead.
#include <stdint.h>
#include <string.h>
-/* configuration */
-
-#ifdef __GNUC__
-#define SIZEOF_VOID_P __SIZEOF_POINTER__
-#define HAVE__BUILTIN_CLZ 1
-#else
-#error 'you need to define this for your compiler'
-#endif
-
-/* TODO: this is a guess, it is on my Ubuntu 20.04 */
-#define HAVE_LONG_INT_64 1
+#include "pg_config.h"
/*