Using bitwise operations to filter results based on user selected filters in javascript [Tip/Trick]
Posted: 26 Jul 2011
Updated: 26 Jul 2011
Views: 840
Rating: 5.00/5
Votes: 2
Popularity: 1.51
Licence: The Code Project Open License (CPOL)
Bookmarked: 1
Downloaded: 0
Not sure I got it correctly... But if I did, here's a simpler solution which doesn't rely on implication. Bitfields are ubiquitous in C programming, they are used to specify flags. If, for instance, your hotel requirements amount to bitfield 01101010 then you can simply AND the bitfield with...