1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 08:20:27 +00:00

Use computed goto in vm for GCC

This commit is contained in:
bakpakin 2018-01-31 21:40:19 -05:00
parent a6694e985c
commit 1bf0b538cd
2 changed files with 539 additions and 465 deletions

View File

@ -107,7 +107,7 @@ const uint8_t *dst_cstring(const char *str) {
static int32_t real_to_string_impl(uint8_t *buf, double x) { static int32_t real_to_string_impl(uint8_t *buf, double x) {
/* Use 16 decimal places to ignore one ulp errors for now */ /* Use 16 decimal places to ignore one ulp errors for now */
int count = snprintf((char *) buf, DST_BUFSIZE, "%.16g", x); int count = snprintf((char *) buf, DST_BUFSIZE, "%.16gR", x);
return (int32_t) count; return (int32_t) count;
} }

File diff suppressed because it is too large Load Diff