History

*BSD: Add few __builtin_ math missing definitions.

Christian Jullien committed 5 years ago

Commit ac470a41 parent 7eea5301 file · +8 −0Browse files

Unified · Split

libtcc.c+8−0
@@ -884,6 +884,10 @@ LIBTCCAPI TCCState *tcc_new(void) · 883 unmodified lines
884884 tcc_define_symbol(s, "__FreeBSD__", "12");
885885 /* No 'Thread Storage Local' on FreeBSD with tcc */
886886 tcc_define_symbol(s, "__NO_TLS", NULL);
887+ tcc_define_symbol(s, "__builtin_huge_val()", "1e500");
888+ tcc_define_symbol(s, "__builtin_huge_valf()", "1e50f");
889+ tcc_define_symbol(s, "__builtin_huge_vall()", "1e5000L");
890+ tcc_define_symbol(s, "__builtin_nanf(ignored_string)", "(0.0F/0.0F)");
887891 # if defined(__aarch64__)
888892 /* FIXME, __int128_t is used by setjump */
889893 tcc_define_symbol(s, "__int128_t", "struct { unsigned char _dummy[16]; }");
@@ -899,6 +903,10 @@ LIBTCCAPI TCCState *tcc_new(void) · 9 unmodified lines
899903 tcc_define_symbol(s, "__GNUC_PATCHLEVEL__", "0");
900904 tcc_define_symbol(s, "_Pragma(x)", "");
901905 tcc_define_symbol(s, "__ELF__", "1");
906+ tcc_define_symbol(s, "__builtin_huge_val()", "1e500");
907+ tcc_define_symbol(s, "__builtin_huge_valf()", "1e50f");
908+ tcc_define_symbol(s, "__builtin_huge_vall()", "1e5000L");
909+ tcc_define_symbol(s, "__builtin_nanf(ignored_string)", "(0.0F/0.0F)");
902910 # endif
903911 # if TARGETOS_OpenBSD
904912 tcc_define_symbol(s, "__OpenBSD__", "1");

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t