skip to main | skip to sidebar
Pradeep Patel

Monday, February 20, 2017

Bitwise operations

Bitwise operations:

Set a bit: 
Number | = 1<< x 

Clear a bit:
Number & = ~(1<< x) 

Toggle a bit:
Number ^ = (1<< x) 

Checking a bit:
bit  = (Number>>x) &1



Posted by Pradeep at 10:56 AM

No comments:

Post a Comment

Older Post Home
Subscribe to: Post Comments (Atom)

Wiziq

  • Wiziq

Memory Management

  • slab-allocator

OOAD

  • UML

Linux

  • Kernel Module Development
  • VLAN on Linux
  • Network Buffers and Memory Management
  • Greg K-H's Linux Stuff
  • How The Kernel Manages Your Memory

Basics

  • Shell Code execution
  • Best Article on Stack
  • Proc File System

Food for thoughts

  • DS
  • Memory Management
  • Volatile
  • volatile - Multithreaded Programmer's Best Friend
  • Experiments with the Linux Kernel: Process Segments
  • Memory Translation and Segmentation
  • Page Cache, the Affair Between Memory and Files
  • CPU Rings, Privilege, and Protection
  • Understading program in C

Kerberos

  • Kerberos

Development tools

  • free softwares
  • Search code

USB

  • USB specs

IPv6

  • IPV6 compliance
  • USAGI

voice for web

  • Java Script Packer
  • CSS Validator
  • validator
  • Enjoy talking over the net

Networking stuff

  • Amazing diagrams
  • Linux Network Command
  • packet-journey-2.4.html
  • laforge blog
  • iptables stuff
  • Iptables
  • The Linux Socket Filter: Sniffing Bytes over the Network
  • Inside the Linux Packet Filter, Part II
  • Inside the Linux Packet Filter I

Blog Archive

Contributors

  • Dr. Swati Pradeep Patel
  • Pradeep