mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-22 07:20:45 +00:00
Cosmetics: reindent and break some overly long line.
Originally committed as revision 23405 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0cd28d9494
commit
b851dd9e9b
@ -515,23 +515,31 @@ static double const_values[] = {
|
||||
M_E,
|
||||
0
|
||||
};
|
||||
|
||||
static const char *const_names[] = {
|
||||
"PI",
|
||||
"E",
|
||||
0
|
||||
};
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int i;
|
||||
double d;
|
||||
ff_parse_and_eval_expr(&d, "1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_names, const_values, NULL, NULL, NULL, NULL, NULL, 0, NULL);
|
||||
ff_parse_and_eval_expr(&d, "1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)",
|
||||
const_names, const_values,
|
||||
NULL, NULL, NULL, NULL, NULL, 0, NULL);
|
||||
printf("%f == 12.7\n", d);
|
||||
ff_parse_and_eval_expr(&d, "80G/80Gi", const_names, const_values, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
ff_parse_and_eval_expr(&d, "80G/80Gi",
|
||||
const_names, const_values,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
printf("%f == 0.931322575\n", d);
|
||||
|
||||
for (i=0; i<1050; i++) {
|
||||
START_TIMER
|
||||
ff_parse_and_eval_expr(&d, "1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_names, const_values, NULL, NULL, NULL, NULL, NULL, 0, NULL);
|
||||
ff_parse_and_eval_expr(&d, "1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)",
|
||||
const_names, const_values,
|
||||
NULL, NULL, NULL, NULL, NULL, 0, NULL);
|
||||
STOP_TIMER("ff_parse_and_eval_expr")
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user