summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-09 19:42:28 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-09 19:42:28 -0400
commitb372929662f082de59d391b47c7da3b96b416b3d (patch)
tree26ce2e6d7287abc5d792085ea75936beb24b9bd7
parent308259ef14ea04b6888d372b2dbe65d48760b7a9 (diff)
downloadvecmathlib-b372929662f082de59d391b47c7da3b96b416b3d.zip
vecmathlib-b372929662f082de59d391b47c7da3b96b416b3d.tar.gz
Add _cl_ prefix for all functions
-rwxr-xr-xpocl/generate-files.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pocl/generate-files.py b/pocl/generate-files.py
index 7baff19..9506bf9 100755
--- a/pocl/generate-files.py
+++ b/pocl/generate-files.py
@@ -181,7 +181,7 @@ directfuncs = [
# This is always prepended to the generated function names.
-func_prefix = ""
+func_prefix = "_cl_"
# Some of the functions need prefixes to avoid using the C standard
# library ones.
@@ -212,7 +212,7 @@ masked_functions = [
]
# This is prepended to masked function names.
-mask_prefix = "_cl_"
+mask_prefix = ""
def prefixed(name):
if name in masked_functions: name = mask_prefix + name
OpenPOWER on IntegriCloud