Here you can find the source of rounded_shift_down(long x, int n)
private static long rounded_shift_down(long x, int n)
//package com.java2s; /*// w ww .j av a2 s . c om ** ShortenUtils.java ** ** Copyright (c) 2011 Peter McQuillan ** ** All Rights Reserved. ** ** Distributed under the BSD Software License (see license.txt) ** */ public class Main { private static long rounded_shift_down(long x, int n) { if (n == 0) return (x); else { return ((x >> (n - 1)) >> 1); } } }