The function calls ceil() and floor() but passes an int and there is obviously no implementation for that so clang fails. It seems like exp should be a float from this code. Signed-off-by: Mark Charlebois <charlebm@gmail.com>