Arithmetic functions implemented for CUDA using the Obsidian framework