mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-18 21:29:19 +02:00
add link to paper for single/half float conversions
This commit is contained in:
parent
f1df493c32
commit
b1a370b218
1 changed files with 1 additions and 0 deletions
1
sexp.c
1
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,
|
||||
|
|
Loading…
Add table
Reference in a new issue