Skip to content
Snippets Groups Projects
Commit 3d66aebd authored by Matt Wala's avatar Matt Wala
Browse files

(Experiment) Replace my_add_sat() with a+b, just too see what happens.

parent de1cc4d1
No related branches found
No related tags found
No related merge requests found
......@@ -227,8 +227,7 @@ SCAN_PREAMBLE_TPL = Template(r"""//CL//
inline int my_add_sat(int a, int b)
{
long result = (long) a + b;
return (result > INT_MAX) ? INT_MAX : result;
return a + b;
}
// {{{ scan 'add' operation
......@@ -438,8 +437,7 @@ SPLIT_BOX_ID_SCAN_TPL = ScanTemplate(
preamble=r"""//CL:mako//
inline int my_add_sat(int a, int b)
{
long result = (long) a + b;
return (result > INT_MAX) ? INT_MAX : result;
return a + b;
}
scan_t count_new_boxes_needed(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment