Skip to content

Commit

Permalink
add link to paper for single/half float conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
ashinn committed Jun 1, 2024
1 parent f1df493 commit b1a370b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sexp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b1a370b

Please sign in to comment.