]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commit
Implemented smart intrinsic / builtin system. When you use trivial math functions...
authorDale Weiler <killfieldengine@gmail.com>
Sat, 9 Mar 2013 08:53:39 +0000 (08:53 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 9 Mar 2013 08:53:39 +0000 (08:53 +0000)
commitcbeac3e5f2e3128ea9828bfd61d4d450c9a002a6
tree893e9a4bbc6bfce7e463e0f5fdf786a6b445e82c
parent9bb586fb5a12d464b71dac24532dfc40b35cf7ee
Implemented smart intrinsic / builtin system.  When you use trivial math functions like "pow", if they don't exist as a builtin, the compiler will implement its own versions, likewise, if a compiler builtin depends on a function that exists, it will use it, likewise if it doesn't it will implement it.  If you explicitally use __builtin_ (prefixed) versions, the compiler again will select the best option it can, be it a combination of both builtins and compiler builtins, all compiler builtins, OR, all builtins (most performant).
Makefile
intrin.c [new file with mode: 0644]
parser.c