Closed GoogleCodeExporter closed 9 years ago
Hi
Which C reference do you use? I don't see why using a function inside the test
expression is problematic. (closing it for now)
Original comment by matthias.ringwald@gmail.com
on 17 Feb 2015 at 9:37
int pb = hci_non_flushable_packet_boundary_flag_supported() ? 0x00 : 0x02;
please confirm, can we keep the above C programming code as equivalent to below
mentioned C programming code.
int pb;
pb = hci_non_flushable_packet_boundary_flag_supported();
if(pb)
return 0x00;
else
return 0x02;
if so which version of the code is optimal(either efficient or optimized)
Original comment by svrajas...@gmail.com
on 18 Feb 2015 at 2:35
I tested the code :
int pb = hci_non_flushable_packet_boundary_flag_supported() ? 0x00 : 0x02;
works fine with gcc compiler,but still would like to know the comment#2.
Original comment by svrajas...@gmail.com
on 18 Feb 2015 at 2:38
Original issue reported on code.google.com by
svrajas...@gmail.com
on 11 Feb 2015 at 12:15Attachments: