Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Arnaud Kress
easea
Commits
01705daf
Commit
01705daf
authored
Nov 23, 2010
by
Farzad Sehat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Petit bug dans le calcul de l'index de INPUT et de OUTPUT OK
parent
e927710b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
EaseaLex.cpp
EaseaLex.cpp
+6
-6
EaseaLex.l
EaseaLex.l
+6
-6
No files found.
EaseaLex.cpp
View file @
01705daf
...
...
@@ -810,7 +810,7 @@ if( bGPOPCODE_ANALYSIS )printf("\n");lineCounter++;
unsigned no_output = strtol(yytext+strlen("OUTPUT["),&endptr,10);
if( bIsCopyingGPEval)
if( bCOPY_GP_EVAL_GPU )
fprintf(fpOutputFile, "outputs[
i
*NUMTHREAD2+tid
+%d
]", no_output);
fprintf(fpOutputFile, "outputs[
(i+%d)
*NUMTHREAD2+tid]", no_output);
else fprintf(fpOutputFile, "outputs[i+%d]", no_output );
...
...
@@ -825,7 +825,7 @@ if( bGPOPCODE_ANALYSIS )printf("\n");lineCounter++;
var = strndup(yytext+strlen("OUTPUT["), strlen(yytext) - strlen("OUTPUT[") - 1);
if( bIsCopyingGPEval)
if( bCOPY_GP_EVAL_GPU )
fprintf(fpOutputFile, "outputs[
i
*NUMTHREAD2+tid
+%s
]", var);
fprintf(fpOutputFile, "outputs[
(i+%s)
*NUMTHREAD2+tid]", var);
else fprintf(fpOutputFile, "outputs[i+%s]", var);
...
...
@@ -853,8 +853,8 @@ if( bGPOPCODE_ANALYSIS )printf("\n");lineCounter++;
unsigned no_input = strtol(yytext+strlen("INPUT["),&endptr,10);
if( bIsCopyingGPEval)
if( bCOPY_GP_EVAL_GPU )
fprintf(fpOutputFile, "k_inputs[
i
*NUMTHREAD2+tid
+%d
]", no_input);
else fprintf(fpOutputFile, "inputs[i
][%d
]", no_input );
fprintf(fpOutputFile, "k_inputs[
(i+%d)
*NUMTHREAD2+tid]", no_input);
else fprintf(fpOutputFile, "inputs[i
+%d][0
]", no_input );
#line 861 "EaseaLex.cpp"
...
...
@@ -868,8 +868,8 @@ if( bGPOPCODE_ANALYSIS )printf("\n");lineCounter++;
var = strndup(yytext+strlen("INPUT["), strlen(yytext) - strlen("INPUT[") - 1);
if( bIsCopyingGPEval)
if( bCOPY_GP_EVAL_GPU )
fprintf(fpOutputFile, "k_inputs[
i
*NUMTHREAD2+tid
+%s
]", var);
else fprintf(fpOutputFile, "inputs[i
][%s
]", var);
fprintf(fpOutputFile, "k_inputs[
(i+%s)
*NUMTHREAD2+tid]", var);
else fprintf(fpOutputFile, "inputs[i
+%s][0
]", var);
#line 876 "EaseaLex.cpp"
...
...
EaseaLex.l
View file @
01705daf
...
...
@@ -563,7 +563,7 @@ exponent ([Ee][+-]?[0-9]+)
unsigned no_output = strtol(yytext+strlen("OUTPUT["),&endptr,10);
if( bIsCopyingGPEval)
if( bCOPY_GP_EVAL_GPU )
fprintf(fpOutputFile, "outputs[
i
*NUMTHREAD2+tid
+%d
]", no_output);
fprintf(fpOutputFile, "outputs[
(i+%d)
*NUMTHREAD2+tid]", no_output);
else fprintf(fpOutputFile, "outputs[i+%d]", no_output );
}
...
...
@@ -573,7 +573,7 @@ exponent ([Ee][+-]?[0-9]+)
var = strndup(yytext+strlen("OUTPUT["), strlen(yytext) - strlen("OUTPUT[") - 1);
if( bIsCopyingGPEval)
if( bCOPY_GP_EVAL_GPU )
fprintf(fpOutputFile, "outputs[
i
*NUMTHREAD2+tid
+%s
]", var);
fprintf(fpOutputFile, "outputs[
(i+%s)
*NUMTHREAD2+tid]", var);
else fprintf(fpOutputFile, "outputs[i+%s]", var);
}
...
...
@@ -591,8 +591,8 @@ exponent ([Ee][+-]?[0-9]+)
unsigned no_input = strtol(yytext+strlen("INPUT["),&endptr,10);
if( bIsCopyingGPEval)
if( bCOPY_GP_EVAL_GPU )
fprintf(fpOutputFile, "k_inputs[
i
*NUMTHREAD2+tid
+%d
]", no_input);
else fprintf(fpOutputFile, "inputs[i
][%d
]", no_input );
fprintf(fpOutputFile, "k_inputs[
(i+%d)
*NUMTHREAD2+tid]", no_input);
else fprintf(fpOutputFile, "inputs[i
+%d][0
]", no_input );
}
...
...
@@ -601,8 +601,8 @@ exponent ([Ee][+-]?[0-9]+)
var = strndup(yytext+strlen("INPUT["), strlen(yytext) - strlen("INPUT[") - 1);
if( bIsCopyingGPEval)
if( bCOPY_GP_EVAL_GPU )
fprintf(fpOutputFile, "k_inputs[
i
*NUMTHREAD2+tid
+%s
]", var);
else fprintf(fpOutputFile, "inputs[i
][%s
]", var);
fprintf(fpOutputFile, "k_inputs[
(i+%s)
*NUMTHREAD2+tid]", var);
else fprintf(fpOutputFile, "inputs[i
+%s][0
]", var);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment