From 9a6a7aaa87029b4ab7e0511958a64e0f59de25a5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 9 Aug 2021 12:50:32 +0200 Subject: [PATCH] Make fp16_to_double static This prevents this internal symbol from being leaked in the library's symbol table. --- output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.c b/output.c index 576cd73..6893d21 100644 --- a/output.c +++ b/output.c @@ -68,7 +68,7 @@ bool liftoff_output_needs_composition(struct liftoff_output *output) return false; } -double fp16_to_double(uint64_t val) { +static double fp16_to_double(uint64_t val) { return (double)(val >> 16) + (double)(val & 0xFFFF) / 0xFFFF; }