1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Convert all remaining float4 and float8 functions to new fmgr style.

At this point I think it'd be possible to make float4 be pass-by-value
without too much work --- and float8 too on machines where Datum is
8 bytes.  Something to try when the mood strikes, anyway.
This commit is contained in:
Tom Lane
2000-08-01 18:29:35 +00:00
parent 92bd532c1e
commit 463f1f5cda
10 changed files with 910 additions and 1163 deletions

View File

@ -3,7 +3,7 @@
* numutils.c
* utility functions for I/O of built-in numeric types.
*
* integer: itoa, ltoa
* integer: pg_itoa, pg_ltoa
* floating point: ftoa, atof1
*
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.41 2000/07/12 22:59:09 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numutils.c,v 1.42 2000/08/01 18:29:35 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -116,27 +116,27 @@ pg_atoi(char *s, int size, int c)
}
/*
* itoa - converts a short int to its string represention
* pg_itoa - converts a short int to its string represention
*
* Note:
* previously based on ~ingres/source/gutil/atoi.c
* now uses vendor's sprintf conversion
*/
void
itoa(int i, char *a)
pg_itoa(int16 i, char *a)
{
sprintf(a, "%hd", (short) i);
}
/*
* ltoa - converts a long int to its string represention
* pg_ltoa - converts a long int to its string represention
*
* Note:
* previously based on ~ingres/source/gutil/atoi.c
* now uses vendor's sprintf conversion
*/
void
ltoa(int32 l, char *a)
pg_ltoa(int32 l, char *a)
{
sprintf(a, "%d", l);
}