Skip to content

Commit

Permalink
Switch test to use __floatdidf
Browse files Browse the repository at this point in the history
The `__floatdidf` builtin uses a more conventional type--`double`--which
means we don't have to guess at the representation of `tf_float`.
  • Loading branch information
abrown committed Oct 18, 2024
1 parent 38ae65b commit 24a7308
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <assert.h>

int main() {
tf_float f = __floatditf(0);
double f = __floatdidf(0);
assert(f == 0.0);
return 0;
}

0 comments on commit 24a7308

Please sign in to comment.