summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-06-05 10:22:42 -0600
committerKarl Williamson <khw@cpan.org>2021-07-30 05:41:27 -0600
commitbf874180e9a7a8fbb74ab7eaa5c683ecc5a6ffc7 (patch)
treedcd3fbb669c5ffe256a551deac326fd1d66782df /proto.h
parent6e7a7813c390d2121876b9f8af4f37102e8d51fa (diff)
downloadperl-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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index 3900f06717..adc7202787 100644
--- a/proto.h
+++ b/proto.h
@@ -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 \