virtual code snippets defined for fixed point calculations