begnuas: let user specify elf variants
[libfirm] / ir / common / timing.c
index 496db98..9ec076f 100644 (file)
@@ -62,18 +62,12 @@ typedef struct timeval ir_timer_val_t;
 
 #include <stddef.h>
 
-static inline void _time_get(ir_timer_val_t *val);
 static inline void _time_reset(ir_timer_val_t *val);
-static inline unsigned long _time_to_msec(const ir_timer_val_t *val);
-static inline ir_timer_val_t *_time_add(ir_timer_val_t *res,
-               const ir_timer_val_t *lhs, const ir_timer_val_t *rhs);
-static inline ir_timer_val_t *_time_sub(ir_timer_val_t *res,
-               const ir_timer_val_t *lhs, const ir_timer_val_t *rhs);
 
 /**
  * A timer.
  */
-struct _ir_timer_t {
+struct ir_timer_t {
        ir_timer_val_t elapsed;     /**< the elapsed time so far */
        ir_timer_val_t start;       /**< the start value of the timer */
        ir_timer_t     *link;       /**< link to the next entry in the timer stack */
@@ -218,7 +212,7 @@ int ir_timer_enter_high_priority(void)
        algo = sched_getscheduler(pid);
        max  = sched_get_priority_max(algo);
 
-       memcpy(&p, &std_sched_param, sizeof(p));
+       p = std_sched_param;
        p.sched_priority = max;
        res = sched_setparam(pid, &p);