Java Bit Flip FLIPENDIAN_INT32(int x)

Here you can find the source of FLIPENDIAN_INT32(int x)

Description

FLIPENDIAINT

License

Open Source License

Declaration

static private int FLIPENDIAN_INT32(int x) 

Method Source Code

//package com.java2s;
// I ported this from the mame project, this is their license

public class Main {
    static private int FLIPENDIAN_INT32(int x) {
        return (x << 24) | (x >>> 24) | ((x & 0x0000ff00) << 8)
                | ((x & 0x00ff0000) >> 8);
    }//from  w w  w  . ja v  a 2s .c o  m
}

Related

  1. flipBitAt(int bitIndex, byte b)
  2. flipBits(byte[] bytes, int start, int bitLength)
  3. flipBits(int n)
  4. flipBits(int value)
  5. flipC(long v, int off)