8#ifndef INCLUDED_BDLB_BITMASKUTIL
9#define INCLUDED_BDLB_BITMASKUTIL
156#include <bdlscm_version.h>
164#include <bsl_cstdint.h>
187 static bsl::uint32_t
eq(
int index);
192 static bsl::uint64_t
eq64(
int index);
194 static bsl::uint32_t
ge(
int index);
200 static bsl::uint64_t
ge64(
int index);
202 static bsl::uint32_t
gt(
int index);
208 static bsl::uint64_t
gt64(
int index);
210 static bsl::uint32_t
le(
int index);
216 static bsl::uint64_t
le64(
int index);
218 static bsl::uint32_t
lt(
int index);
224 static bsl::uint64_t
lt64(
int index);
226 static bsl::uint32_t
ne(
int index);
231 static bsl::uint64_t
ne64(
int index);
233 static bsl::uint32_t
one(
int index,
int numBits);
239 static bsl::uint64_t
one64(
int index,
int numBits);
241 static bsl::uint32_t
zero(
int index,
int numBits);
247 static bsl::uint64_t
zero64(
int index,
int numBits);
414 return lt(index + numBits) &
ge(index);
424 return lt64(index + numBits) &
ge64(index);
434 return lt(index) |
ge(index + numBits);
444 return lt64(index) |
ge64(index + numBits);
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bdlb_algorithmworkaroundutil.h:74
Definition bdlb_bitmaskutil.h:177
static bsl::uint64_t ne64(int index)
Definition bdlb_bitmaskutil.h:396
static bsl::uint64_t zero64(int index, int numBits)
Definition bdlb_bitmaskutil.h:438
static bsl::uint32_t ge(int index)
Definition bdlb_bitmaskutil.h:284
static bsl::uint64_t le64(int index)
Definition bdlb_bitmaskutil.h:347
static bsl::uint64_t gt64(int index)
Definition bdlb_bitmaskutil.h:321
static bsl::uint64_t eq64(int index)
Definition bdlb_bitmaskutil.h:272
static bsl::uint32_t ne(int index)
Definition bdlb_bitmaskutil.h:384
static bsl::uint32_t zero(int index, int numBits)
Definition bdlb_bitmaskutil.h:428
static bsl::uint32_t lt(int index)
Definition bdlb_bitmaskutil.h:360
static bsl::uint32_t le(int index)
Definition bdlb_bitmaskutil.h:334
static bsl::uint64_t one64(int index, int numBits)
Definition bdlb_bitmaskutil.h:418
static bsl::uint64_t ge64(int index)
Definition bdlb_bitmaskutil.h:296
static bsl::uint64_t lt64(int index)
Definition bdlb_bitmaskutil.h:372
static bsl::uint32_t eq(int index)
Definition bdlb_bitmaskutil.h:260
static bsl::uint32_t gt(int index)
Definition bdlb_bitmaskutil.h:308
static bsl::uint32_t one(int index, int numBits)
Definition bdlb_bitmaskutil.h:408
@ k_BITS_PER_UINT64
Definition bdlb_bitmaskutil.h:183
@ k_BITS_PER_UINT32
Definition bdlb_bitmaskutil.h:181