001    /**
002     * Implements the Cold Fusion Function bitshln
003     */
004    package railo.runtime.functions.math;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.FunctionException;
008    import railo.runtime.ext.function.Function;
009    
010    public final class BitSHLN implements Function {
011            public static double call(PageContext pc , double dnumber, double dcount) throws FunctionException {
012                    int number=(int) dnumber,count=(int) dcount;
013                    if(count > 31 || count < 0)
014                            throw new FunctionException(pc,"bitSHLN",2,"count","must be beetween 0 and 31 now "+count);
015                    
016                    return number << count;
017            }       
018    }