Java Bit Set setBitTo0(final long word, final int idx)

Here you can find the source of setBitTo0(final long word, final int idx)

Description

set Bit To

License

Open Source License

Declaration

private static long setBitTo0(final long word, final int idx) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static long setBitTo0(final long word, final int idx) {
        return (~(1l << idx) & word);
    }//from www  .  java2  s. c  om
}

Related

  1. setBits(int lowBit, int numBits)
  2. setBits(int value, int bits)
  3. setBits(long value, long bits)
  4. setBitsFromLong(byte[] dst, long dstoff, long l, int off, int len)
  5. setBitsInLong(long l, int n, int k, long v)
  6. setBitValue(byte aByte, int bitIndex, int bitValue)
  7. setBitValueAt(int destination, int value, int index)
  8. setBitWidth(int bw)