halide/Halide — pull request #381 by DanielHeck (2014-07-17 16:55:31+00:00)
Title: GLSL: Handle more math functions correctly

Map intrinsics to correct GLSL functions:
- trigonometric functions (sin, cos, tan, asin, acos, atan, atan2)
- exponential functions (pow, exp, log)
- general functions (floor, ceil, lerp)

Since GLSL doesn't support bit arithmetic, don't use C backend to generate
code for "Mod" and "Div".