From b1a370b218cb13cb8f6c98a087185b0357df8e89 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Sat, 1 Jun 2024 22:18:16 +0900 Subject: [PATCH] add link to paper for single/half float conversions --- sexp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sexp.c b/sexp.c index 7968c64c..1b6be3c0 100644 --- a/sexp.c +++ b/sexp.c @@ -3204,6 +3204,7 @@ static float int_as_float(const unsigned int n) { return x.flonum; } +/* https://arxiv.org/abs/2112.08926 */ double sexp_half_to_double(unsigned short x) { unsigned int e = (x&0x7C00)>>10, m = (x&0x03FF)<<13,