Fix implementation of length builtin v2
authorTom Stellard <thomas.stellard@amd.com>
Mon, 23 Mar 2015 17:01:33 +0000 (17:01 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 23 Mar 2015 17:01:33 +0000 (17:01 +0000)
commitcb1c0d7939dfd10ca439518ad798e00339eab3fa
treec87c49ca16db54e872d95d5544d9920ce0006a36
parentae0ad9c95ddb25f00e3284722acbbcef76a02d7f
Fix implementation of length builtin v2

v2:
  - Move common code into a macro
  - Use the same constant for all vector types.

llvm-svn: 232963
libclc/generic/lib/geometric/length.cl
libclc/generic/lib/geometric/length.inc [deleted file]