A simple sine wave generator in c++/ fixed function dx