summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/til_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/til_util.h b/src/til_util.h
index cea1825..3dc7fc7 100644
--- a/src/til_util.h
+++ b/src/til_util.h
@@ -29,4 +29,9 @@
unsigned til_get_ncpus(void);
+static inline float til_ticks_to_rads(unsigned ticks)
+{
+ return (ticks % 6283) * .001f;
+}
+
#endif /* _TIL_UTIL_H */
© All Rights Reserved