Skip to content

Commit

Permalink
Merge pull request #1488 from MoarVM/fpclassify
Browse files Browse the repository at this point in the history
Fpclassify - Implement MVM_num_isnanorinf using isinf and isnan
  • Loading branch information
nwc10 committed May 16, 2021
2 parents 7be2861 + 31b1373 commit 2084ccf
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 113 deletions.
1 change: 1 addition & 0 deletions Configure.pl
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ sub uniq {
build::probe::substandard_pow(\%config, \%defaults);
build::probe::substandard_log(\%config, \%defaults);
build::probe::substandard_trig(\%config, \%defaults);
build::probe::has_isinf_and_isnan(\%config, \%defaults);
build::probe::unaligned_access(\%config, \%defaults);
build::probe::ptr_size(\%config, \%defaults);

Expand Down
12 changes: 12 additions & 0 deletions build/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@
#define MVM_HAS_RDTSCP
#endif

#if @has_isinf@
#define MVM_HAS_ISINF
#endif

#if @has_isnan@
#define MVM_HAS_ISNAN
#endif

#if @has_signbit@
#define MVM_HAS_SIGNBIT
#endif

/* Should we translate \n to \r\n on output? */
#define MVM_TRANSLATE_NEWLINE_OUTPUT @translate_newline_output@

Expand Down
Loading

0 comments on commit 2084ccf

Please sign in to comment.