summaryrefslogtreecommitdiff
path: root/src/include/utils/float.h
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2022-12-21 08:37:17 -0500
committerAndrew Dunstan <andrew@dunslane.net>2022-12-21 16:55:52 -0500
commit33dd895ef3316bd1896def6882e9075359d7e9af (patch)
treeebb480514853daab160668252c8baf4f0d9fbd4c /src/include/utils/float.h
parenteb706fde8302c32267518663032905556db21f57 (diff)
Introduce float4in_internal
This is the guts of float4in, callable as a routine to input floats, which will be useful in an upcoming patch for allowing soft errors in the seg module's input function. A similar operation was performed some years ago for float8in in commit 50861cd683e. Reviewed by Tom Lane Discussion: https://postgr.es/m/cee4e426-d014-c0b7-aa22-a659f2cd9130@dunslane.net
Diffstat (limited to 'src/include/utils/float.h')
-rw-r--r--src/include/utils/float.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/utils/float.h b/src/include/utils/float.h
index f92860b4a46..60e897be755 100644
--- a/src/include/utils/float.h
+++ b/src/include/utils/float.h
@@ -44,6 +44,9 @@ extern int is_infinite(float8 val);
extern float8 float8in_internal(char *num, char **endptr_p,
const char *type_name, const char *orig_string,
struct Node *escontext);
+extern float4 float4in_internal(char *num, char **endptr_p,
+ const char *type_name, const char *orig_string,
+ struct Node *escontext);
extern char *float8out_internal(float8 num);
extern int float4_cmp_internal(float4 a, float4 b);
extern int float8_cmp_internal(float8 a, float8 b);