[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pdf-devel] Re: System 64-bit types
From: |
Daniel Vidal |
Subject: |
[pdf-devel] Re: System 64-bit types |
Date: |
Mon, 12 May 2008 09:26:54 +0200 |
Yes. If 64 bit types are available in the system, they should be used.
the 64 bit implementation will be changed to reflect this.
cheers
Dani
On Sun, May 11, 2008 at 5:14 PM, Aleksander Morgado
<address@hidden> wrote:
> Hi Daniel,
>
> If 64bit types are available in the system, shouldn't we use them?
> Something like re-defining the functions if 64bit types are available:
>
> #ifdef int64_t
> #define PDF_USE_BUILTIN_64BIT_SUPPORT 0
> #else
> #define PDF_USE_BUILTIN_64BIT_SUPPORT 1
> #endif
>
>
> And then...
>
> #if PDF_USE_BUILTIN_64BIT_SUPPORT
>
> pdf_status_t pdf_i64_copy(const pdf_i64_t orig, pdf_i64_t *copy)
> {
> if (copy == NULL)
> {
> return PDF_ERROR;
> }
> copy->high = orig.high;
> copy->low = orig.low;
> return PDF_OK;
>
> }/*end pdf_i64_copy*/
>
> #else
>
> pdf_status_t pdf_i64_copy(const pdf_i64_t orig, pdf_i64_t *copy)
> {
> *copy=orig;
> return PDF_OK;
> }
>
> #endif
>
>
> And so on... or even directly with macros.
>
> Best regards,
>
> -Aleksander
>
>
- [pdf-devel] System 64-bit types, Aleksander Morgado, 2008/05/11
- [pdf-devel] Re: System 64-bit types,
Daniel Vidal <=
- Re: [pdf-devel] System 64-bit types, jemarch, 2008/05/13
- Re: [pdf-devel] System 64-bit types, Aleksander Morgado, 2008/05/13
- Re: [pdf-devel] System 64-bit types, jemarch, 2008/05/13
- Re: [pdf-devel] System 64-bit types, Juan Pedro Bolivar Puente, 2008/05/13
- Re: [pdf-devel] System 64-bit types, Juan Pedro Bolivar Puente, 2008/05/13
- Re: [pdf-devel] System 64-bit types, Daniel Vidal, 2008/05/14
- Re: [pdf-devel] System 64-bit types, jemarch, 2008/05/14
- Re: [pdf-devel] System 64-bit types, Daniel Vidal, 2008/05/25