Re: Speedup usages of pg_*toa() functions - Mailing list pgsql-hackers

From Andrew Gierth
Subject Re: Speedup usages of pg_*toa() functions
Date
Msg-id 87zh9c55up.fsf@news-spur.riddles.org.uk
Whole thread Raw
In response to Re: Speedup usages of pg_*toa() functions  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: Speedup usages of pg_*toa() functions
List pgsql-hackers
>>>>> "Ranier" == Ranier Vilela <ranier.vf@gmail.com> writes:

 Ranier> So I would change, just the initialization (var uvalue), even though it is
 Ranier> irrelevant.

 Ranier> int
 Ranier> pg_lltoa(int64 value, char *a)
 Ranier> {
 Ranier> int len = 0;
 Ranier> uint64 uvalue;

 Ranier> if (value < 0)
 Ranier> {
 Ranier> uvalue = (uint64) 0 - uvalue;

Use of uninitialized variable.

-- 
Andrew (irc:RhodiumToad)



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: Re: Speedup usages of pg_*toa() functions
Next
From: Robert Haas
Date:
Subject: Re: global barrier & atomics in signal handlers (Re: Atomicoperations within spinlocks)