Menu

#3 64-bit compiler support

open
nobody
None
5
2013-05-23
2013-05-23
Edwin Chen
No

this package seems to be for 32-bit systems (where long and int are the same size).

The first clue: the is no ultoa.

The second clue: in ulltoa_general there is a check to see if the number is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But ULONGLONG is actually 128 bits in 64-bit systems.

I guess one could rename the functions and types to support 64-bit longs and 128-bit long long but i wonder if the author could share some thoughts and ideas on this. Maybe an update to the package could be provided.

Related

Feature Requests: #3

Discussion

  • Remi Chateauneu

    Remi Chateauneu - 2013-05-24

    Hi Edwin,

    Indeed this package is not perfect, to be completely honest I do not
    need it at the moment, so I put it a bit apart (For the moment).

    I have attached more mature versions if they are needed.

    I have no 128 platform at the moment.

    If you wish, I can promote you as co-developer of this small project. I
    am vastly interested by any fomr of cooperation on this, because it
    always was a surprise to see that no much effort is put on this feature.

    Thanks for you interest, have anice day.

    Regards

    Remi

    Le 23.05.2013 16:35, Edwin Chen a écrit :


    [feature-requests:#3]
    http://sourceforge.net/p/itoa/feature-requests/3/ 64-bit compiler support

    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the
    same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number
    is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But
    ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs
    and 128-bit long long but i wonder if the author could share some
    thoughts and ideas on this. Maybe an update to the package could be
    provided.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Feature Requests: #3

  • Edwin Chen

    Edwin Chen - 2013-05-25

    I got it to work for 64-bit.

    I see what the deficiencies were. On 32-bit, long long was 64-bit but on 64-bit, long and long long are 64-bit. I know how to best fix it too: use int32_t and int64_t instead. I would like to take on your offer to become a co-developer and address these 64-bit issues…just give a month or so to make the changes.

    Thanks,

    Edwin

    From: Remi Chateauneu [mailto:f4ecw@users.sf.net]
    Sent: Friday, May 24, 2013 1:42 AM
    To: [itoa:feature-requests]
    Subject: [itoa:feature-requests] Re: #3 64-bit compiler support

    Hi Edwin,

    Indeed this package is not perfect, to be completely honest I do not
    need it at the moment, so I put it a bit apart (For the moment).

    I have attached more mature versions if they are needed.

    I have no 128 platform at the moment.

    If you wish, I can promote you as co-developer of this small project. I
    am vastly interested by any fomr of cooperation on this, because it
    always was a surprise to see that no much effort is put on this feature.

    Thanks for you interest, have anice day.

    Regards

    Remi

    Le 23.05.2013 16:35, Edwin Chen a écrit :


    [feature-requests:#3] http://sourceforge.net/p/itoa/feature-requests/3/
    http://sourceforge.net/p/itoa/feature-requests/3/ 64-bit compiler support

    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the
    same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number
    is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But
    ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs
    and 128-bit long long but i wonder if the author could share some
    thoughts and ideas on this. Maybe an update to the package could be
    provided.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/


    [feature-requests:#3] http://sourceforge.net/p/itoa/feature-requests/3/ 64-bit compiler support

    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs and 128-bit long long but i wonder if the author could share some thoughts and ideas on this. Maybe an update to the package could be provided.


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

     

    Related

    Feature Requests: #3

  • Remi Chateauneu

    Remi Chateauneu - 2013-05-25

    Hi Edwin,

    I added you as a developper of this project. Tell me if this is not enough.
    For your information, this code is in production a

    On Sun, May 26, 2013 at 12:37 AM, Edwin Chen edwinchenloo@users.sf.netwrote:

    I got it to work for 64-bit.

    I see what the deficiencies were. On 32-bit, long long was 64-bit but on
    64-bit, long and long long are 64-bit. I know how to best fix it too: use
    int32_t and int64_t instead. I would like to take on your offer to become a
    co-developer and address these 64-bit issues…just give a month or so to
    make the changes.

    Thanks,

    Edwin

    From: Remi Chateauneu [mailto:f4ecw@users.sf.net]
    Sent: Friday, May 24, 2013 1:42 AM
    To: [itoa:feature-requests]
    Subject: [itoa:feature-requests] Re: #3 64-bit compiler support

    Hi Edwin,

    Indeed this package is not perfect, to be completely honest I do not
    need it at the moment, so I put it a bit apart (For the moment).

    I have attached more mature versions if they are needed.

    I have no 128 platform at the moment.

    If you wish, I can promote you as co-developer of this small project. I
    am vastly interested by any fomr of cooperation on this, because it
    always was a surprise to see that no much effort is put on this feature.

    Thanks for you interest, have anice day.

    Regards

    Remi

    Le 23.05.2013 16:35, Edwin Chen a écrit :

    [feature-requests:#3] http://sourceforge.net/p/itoa/feature-requests/3/
    http://sourceforge.net/p/itoa/feature-requests/3/
    http://sourceforge.net/p/itoa/feature-requests/3/ 64-bit compiler support

    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the
    same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number
    is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But
    ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs
    and 128-bit long long but i wonder if the author could share some
    thoughts and ideas on this. Maybe an update to the package could be
    provided.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/


    [feature-requests:#3] http://sourceforge.net/p/itoa/feature-requests/3/
    http://sourceforge.net/p/itoa/feature-requests/3/ 64-bit compiler support

    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the
    same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number
    is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But
    ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs
    and 128-bit long long but i wonder if the author could share some thoughts
    and ideas on this. Maybe an update to the package could be provided.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/


    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the
    same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number
    is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But
    ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs
    and 128-bit long long but i wonder if the author could share some thoughts
    and ideas on this. Maybe an update to the package could be provided.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Feature Requests: #3

  • Remi Chateauneu

    Remi Chateauneu - 2013-05-25

    Hi Edwin,

    I added you as a developper of this project. Tell me if this is not enough.
    For your information, this code is in production at New York stock
    exchange, where it is about three times faster than their itoa
    implementation.

    Also, for you information, there might be firther improvements based on SSE
    instructions.

    Best regards

    Remi

    On Sun, May 26, 2013 at 12:37 AM, Edwin Chen edwinchenloo@users.sf.netwrote:

    I got it to work for 64-bit.

    I see what the deficiencies were. On 32-bit, long long was 64-bit but on
    64-bit, long and long long are 64-bit. I know how to best fix it too: use
    int32_t and int64_t instead. I would like to take on your offer to become a
    co-developer and address these 64-bit issues…just give a month or so to
    make the changes.

    Thanks,

    Edwin

    From: Remi Chateauneu [mailto:f4ecw@users.sf.net]
    Sent: Friday, May 24, 2013 1:42 AM
    To: [itoa:feature-requests]
    Subject: [itoa:feature-requests] Re: #3 64-bit compiler support

    Hi Edwin,

    Indeed this package is not perfect, to be completely honest I do not
    need it at the moment, so I put it a bit apart (For the moment).

    I have attached more mature versions if they are needed.

    I have no 128 platform at the moment.

    If you wish, I can promote you as co-developer of this small project. I
    am vastly interested by any fomr of cooperation on this, because it
    always was a surprise to see that no much effort is put on this feature.

    Thanks for you interest, have anice day.

    Regards

    Remi

    Le 23.05.2013 16:35, Edwin Chen a écrit :

    [feature-requests:#3] http://sourceforge.net/p/itoa/feature-requests/3/
    http://sourceforge.net/p/itoa/feature-requests/3/
    http://sourceforge.net/p/itoa/feature-requests/3/ 64-bit compiler support

    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the
    same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number
    is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But
    ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs
    and 128-bit long long but i wonder if the author could share some
    thoughts and ideas on this. Maybe an update to the package could be
    provided.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/


    [feature-requests:#3] http://sourceforge.net/p/itoa/feature-requests/3/
    http://sourceforge.net/p/itoa/feature-requests/3/ 64-bit compiler support

    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the
    same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number
    is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But
    ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs
    and 128-bit long long but i wonder if the author could share some thoughts
    and ideas on this. Maybe an update to the package could be provided.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/


    Status: open
    Created: Thu May 23, 2013 03:35 PM UTC by Edwin Chen
    Last Updated: Thu May 23, 2013 03:35 PM UTC
    Owner: nobody

    this package seems to be for 32-bit systems (where long and int are the
    same size).

    The first clue: the is no ultoa.

    The second clue: in ulltoa_general there is a check to see if the number
    is > ULONG_MAX and a comment saying to do div64 bits, then 32 bits. But
    ULONGLONG is actually 128 bits in 64-bit systems.

    I guess one could rename the functions and types to support 64-bit longs
    and 128-bit long long but i wonder if the author could share some thoughts
    and ideas on this. Maybe an update to the package could be provided.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/itoa/feature-requests/3/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     

    Related

    Feature Requests: #3


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.