Optimize wl_fixed_t to/from double conversion functions

This commit is contained in:
Kristian Høgsberg 2012-05-11 23:36:20 -04:00
parent fefa8c0fd5
commit f5df38959b
5 changed files with 211 additions and 12 deletions

View file

@ -853,7 +853,7 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target, int send)
break;
case 'f':
si = (int32_t) value->uint32;
fprintf(stderr, "%f", (double) si / 256.0);
fprintf(stderr, "%f", wl_fixed_to_double(si));
break;
case 's':
fprintf(stderr, "\"%s\"", value->string);