Skip to content

Commit

Permalink
adding explicit cast for float4 pointer assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
bragadeesh committed Jun 30, 2017
1 parent 304b9f4 commit 0f8fe79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/library/generator.stockham.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,8 @@ namespace StockhamGenerator

passStr += "\n\t";
passStr += "__global "; passStr += RegBaseType<PR>(4);
passStr += " *buff4g = "; passStr += bufferRe; passStr += ";\n\t"; // Assuming 'outOffset' is 0, so not adding it here
passStr += " *buff4g = (__global "; passStr += RegBaseType<PR>(4); passStr += " *)";
passStr += bufferRe; passStr += ";\n\t"; // Assuming 'outOffset' is 0, so not adding it here

for(size_t r=0; r<radix; r++) // setting the radix loop outside to facilitate grouped writing
{
Expand Down

0 comments on commit 0f8fe79

Please sign in to comment.