Thanks! On Thursday, April 7, 2016 at 4:59:14 PM UTC+6, Orion Hodson wrote: > > bit-vector.h may be what you're looking for. > > On Thu, Apr 7, 2016 at 11:46 AM, Ben Noordhuis <[email protected] > <javascript:>> wrote: > >> On Thu, Apr 7, 2016 at 10:55 AM, <[email protected] <javascript:>> >> wrote: >> > Hi guys! >> > >> > I'm writing my own implementation of assembler for v8. >> > I need to have bitmap class with following methods: >> > >> > void clear() >> > >> > bool at(uint32_t) >> > >> > void set_bit(uint32_t) >> > >> > >> > and constructor bitmap(size) >> > >> > >> > Is there any similar class in v8 code? I haven't found it :( >> >> There are a couple of BitField template classes in src/utils.h that >> you can use to manipulate words using named constants. >> >> If you're looking for a dynamically-sized bit vector, I'd just use >> std::vector<bool> (or std::array<bool, N> for fixed-size bit vectors.) >> >> -- >> -- >> v8-dev mailing list >> [email protected] <javascript:> >> http://groups.google.com/group/v8-dev >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > >
-- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
