Fastest way to convert binary to decimal?

前端 未结 6 1649
花落未央
花落未央 2020-12-16 05:21

I\'ve got four unsigned 32-bit integers representing an unsigned 128-bit integer, in little endian order:

typedef struct {
    unsigned int part[4];
} bigint         


        
6条回答
  •  萌比男神i
    2020-12-16 06:09

    The most immediate speedup will come from inlining the conversion rather than calling functions; it could be as simple as marking bigint_divmod10() inline, or using profile-guided optimisation as offered by your compiler.

提交回复
热议问题