diff options
author | Karl Williamson <khw@cpan.org> | 2021-06-05 10:22:42 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-07-30 05:41:27 -0600 |
commit | bf874180e9a7a8fbb74ab7eaa5c683ecc5a6ffc7 (patch) | |
tree | dcd3fbb669c5ffe256a551deac326fd1d66782df /proto.h | |
parent | 6e7a7813c390d2121876b9f8af4f37102e8d51fa (diff) | |
download | perl-bf874180e9a7a8fbb74ab7eaa5c683ecc5a6ffc7.tar.gz |
Create and use single_1bit_pos32()
This moves the code from regcomp.c to inline.h that calculates the
position of the lone set bit in a U32. This is in preparation for use
by other call sites.
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3246,6 +3246,12 @@ PERL_CALLCONV Signal_t Perl_sighandler1(int sig); #define PERL_ARGS_ASSERT_SIGHANDLER1 PERL_CALLCONV Signal_t Perl_sighandler3(int sig, Siginfo_t *info, void *uap); #define PERL_ARGS_ASSERT_SIGHANDLER3 +#ifndef PERL_NO_INLINE_FUNCTIONS +PERL_STATIC_INLINE unsigned Perl_single_1bit_pos32(U32 word) + __attribute__warn_unused_result__; +#define PERL_ARGS_ASSERT_SINGLE_1BIT_POS32 +#endif + PERL_CALLCONV char* Perl_skipspace_flags(pTHX_ char *s, U32 flags) __attribute__warn_unused_result__; #define PERL_ARGS_ASSERT_SKIPSPACE_FLAGS \ |