develooper Front page | perl.perl5.changes | Postings from September 2021

[Perl/perl5] 644e3e: Use fabs/fabsl/fabsq for NVs in pp_abs.

From:
TAKAI Kousuke via perl5-changes
Date:
September 22, 2021 06:09
Subject:
[Perl/perl5] 644e3e: Use fabs/fabsl/fabsq for NVs in pp_abs.
Message ID:
Perl/perl5/push/refs/heads/blead/23cca2-644e3e@github.com
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 644e3ee3290a8de5f7fc90ae85ae5c96a2a00039
      https://github.com/Perl/perl5/commit/644e3ee3290a8de5f7fc90ae85ae5c96a2a00039
  Author: TAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>
  Date:   2021-09-22 (Wed, 22 Sep 2021)

  Changed paths:
    M perl.h
    M pp.c

  Log Message:
  -----------
  Use fabs/fabsl/fabsq for NVs in pp_abs.

In many floating point formats, fabs*() are rather simple operations
such as just clearing the sign bit, and will be slightly faster
than a conditional negation (especially with optimizing compilers).





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About