[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl5-changes
Subject:    [Perl/perl5] 955518: handy.h: Refactor FITS_IN_8_BITS()
From:       Karl Williamson via perl5-changes <perl5-changes () perl ! org>
Date:       2021-07-30 12:12:05
Message-ID: Perl/perl5/push/refs/heads/blead/4a1b7b-e4b3c4 () github ! com
[Download RAW message or body]

  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 9555181b32f9b30122a8ea4e779c2c9916cec9f8
      https://github.com/Perl/perl5/commit/9555181b32f9b30122a8ea4e779c2c9916cec9f8
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M handy.h

  Log Message:
  -----------
  handy.h: Refactor FITS_IN_8_BITS()

By using a cast to U8, the '&' operation can be elminated, and the macro
easier to read.


  Commit: d129874cb83375e1080b85b7564a7d6bb2861f14
      https://github.com/Perl/perl5/commit/d129874cb83375e1080b85b7564a7d6bb2861f14
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M doop.c

  Log Message:
  -----------
  doop.c: Rmv redundant '&' instrs

Casting to U8 has the same effect as ANDing with 0xFF.  Remove the
redundant '&'


  Commit: 0132fc5656244fb12418303024312482d47ea4f0
      https://github.com/Perl/perl5/commit/0132fc5656244fb12418303024312482d47ea4f0
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M regen/warnings.pl
    M warnings.h

  Log Message:
  -----------
  warnings.h: Use cast instead of bitwise &

This saves that instruction


  Commit: fb1a3d54eecea658ab547fc242fd442e4155729a
      https://github.com/Perl/perl5/commit/fb1a3d54eecea658ab547fc242fd442e4155729a
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M cop.h

  Log Message:
  -----------
  CxLVAL(): Save a '&' instr by casting to U8


  Commit: 2a173f5acb2530a130e407273836e051b31337d8
      https://github.com/Perl/perl5/commit/2a173f5acb2530a130e407273836e051b31337d8
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M dump.c

  Log Message:
  -----------
  dump.c: Save a '&' instr by casting to U8


  Commit: 8fec2c71ce29e2d8e2f7f823f8ad5a1f017b9f6c
      https://github.com/Perl/perl5/commit/8fec2c71ce29e2d8e2f7f823f8ad5a1f017b9f6c
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M perlio.c

  Log Message:
  -----------
  perlio.c: Save '&' instrs by casting to U8


  Commit: a5d875a720d72e69d399dd31389aec2c3a96406c
      https://github.com/Perl/perl5/commit/a5d875a720d72e69d399dd31389aec2c3a96406c
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M pp_pack.c

  Log Message:
  -----------
  pp_pack: Save '&' instrs by casting to U8


  Commit: 031c7092077d08cc9273f3be54f3ad3749ca8dd2
      https://github.com/Perl/perl5/commit/031c7092077d08cc9273f3be54f3ad3749ca8dd2
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M regcomp.c
    M regcomp.h

  Log Message:
  -----------
  regcomp: Save '&' instrs by casting to U8


  Commit: ed17be2e04b135c5cd087a41888af295a863b9c5
      https://github.com/Perl/perl5/commit/ed17be2e04b135c5cd087a41888af295a863b9c5
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M sv.c

  Log Message:
  -----------
  sv.c: Save a '&' instr by casting to U8


  Commit: e1d42b06fe086972476d94f919b4ea82221d554b
      https://github.com/Perl/perl5/commit/e1d42b06fe086972476d94f919b4ea82221d554b
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M toke.c

  Log Message:
  -----------
  toke.c: Save a '&' instr by casting to U8


  Commit: 4c08ae9e2fd6632af4c6d31eb2b2491266ca2586
      https://github.com/Perl/perl5/commit/4c08ae9e2fd6632af4c6d31eb2b2491266ca2586
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M utf8.c

  Log Message:
  -----------
  utf8.c: Remove redundant '&' instruction

The cast does this with out extra instruction


  Commit: b74cfaffad2529c0c699eaa4462c03fbd7fed423
      https://github.com/Perl/perl5/commit/b74cfaffad2529c0c699eaa4462c03fbd7fed423
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M util.h

  Log Message:
  -----------
  util.h: Save a '&' instr by casting to U8


  Commit: 5b68aa4bccb2c3e8641c6b2eee8431701fda7c4e
      https://github.com/Perl/perl5/commit/5b68aa4bccb2c3e8641c6b2eee8431701fda7c4e
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M vms/vms.c

  Log Message:
  -----------
  vms.c: Save '&' instrs by casting to U8


  Commit: e90adfa31eb44e761bac26425d1bea91a6fa665d
      https://github.com/Perl/perl5/commit/e90adfa31eb44e761bac26425d1bea91a6fa665d
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M win32/win32.c

  Log Message:
  -----------
  win32.c: Save a '&' instr by casting to U8


  Commit: 43d69053867da374ff9077af05e899312924c05d
      https://github.com/Perl/perl5/commit/43d69053867da374ff9077af05e899312924c05d
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M perl.h

  Log Message:
  -----------
  STATUS_UNIX_EXIT_SET(): Save a '&' instr by casting to U8


  Commit: 78c56b66b39a897f75d88cb46fd7f979b74110fe
      https://github.com/Perl/perl5/commit/78c56b66b39a897f75d88cb46fd7f979b74110fe
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M sv.c

  Log Message:
  -----------
  sv_vcatpvfn(): Simplify print format

The print took a character, cast it to UV and then printed it as an
octal UV.  But why not just print it as an unsigned octal character?
The code that did this was part of a sweeping commit of a bunch of
things, so no explanation there.


  Commit: 0c10ec5137330ffeabb4b99cc38d4938afbd0bab
      https://github.com/Perl/perl5/commit/0c10ec5137330ffeabb4b99cc38d4938afbd0bab
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M ext/Opcode/Opcode.pm
    M ext/Opcode/Opcode.xs

  Log Message:
  -----------
  Opcode: Save a '&' instr by casting to U8


  Commit: ef2ae5f23b9be3eda84dc1907b3b1ba5217e9cd7
      https://github.com/Perl/perl5/commit/ef2ae5f23b9be3eda84dc1907b3b1ba5217e9cd7
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M ext/POSIX/POSIX.xs

  Log Message:
  -----------
  POSIX: Save a '&' instr by casting to U8


  Commit: 8dc965c6119f31dfdda629afa35c214d43b367a5
      https://github.com/Perl/perl5/commit/8dc965c6119f31dfdda629afa35c214d43b367a5
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M dist/Storable/Storable.pm
    M dist/Storable/Storable.xs

  Log Message:
  -----------
  Storable: Save a '&' instr by casting to U8


  Commit: e4b3c400285f0401e5430d34e19a49cf3f114a11
      https://github.com/Perl/perl5/commit/e4b3c400285f0401e5430d34e19a49cf3f114a11
  Author: Karl Williamson <khw@cpan.org>
  Date:   2021-07-30 (Fri, 30 Jul 2021)

  Changed paths:
    M dist/Unicode-Normalize/Normalize.pm
    M dist/Unicode-Normalize/Normalize.xs

  Log Message:
  -----------
  Unicode-Normalize: Save '&' instrs by casting to U8


Compare: https://github.com/Perl/perl5/compare/4a1b7bb2bdf3...e4b3c400285f
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic