Gitweb links:

...log 
http://git.netsurf-browser.org/libcss.git/shortlog/58f1673186a41b396d4ca4e13f43b502a305bf01
...commit 
http://git.netsurf-browser.org/libcss.git/commit/58f1673186a41b396d4ca4e13f43b502a305bf01
...tree 
http://git.netsurf-browser.org/libcss.git/tree/58f1673186a41b396d4ca4e13f43b502a305bf01

The branch, master has been updated
       via  58f1673186a41b396d4ca4e13f43b502a305bf01 (commit)
      from  f5842253bdb62fef9543e58ae38c232f5b4f982a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/libcss.git/commit/?id=58f1673186a41b396d4ca4e13f43b502a305bf01
commit 58f1673186a41b396d4ca4e13f43b502a305bf01
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    api: fpmath: Add macro to get fractional part

diff --git a/include/libcss/fpmath.h b/include/libcss/fpmath.h
index d7cac4d..eec40b3 100644
--- a/include/libcss/fpmath.h
+++ b/include/libcss/fpmath.h
@@ -130,6 +130,8 @@ css_float_to_fixed(const float a) {
 
 /* truncate a fixed point value */
 #define TRUNCATEFIX(a) (a & ~((1 << CSS_RADIX_POINT)- 1 ))
+/* get fractional component of a fixed point value */
+#define FIXFRAC(a) (a & ((1 << CSS_RADIX_POINT)- 1 ))
 
 /* Useful values */
 #define F_PI_2 0x00000648      /* 1.5708 (PI/2) */


-----------------------------------------------------------------------

Summary of changes:
 include/libcss/fpmath.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/libcss/fpmath.h b/include/libcss/fpmath.h
index d7cac4d..eec40b3 100644
--- a/include/libcss/fpmath.h
+++ b/include/libcss/fpmath.h
@@ -130,6 +130,8 @@ css_float_to_fixed(const float a) {
 
 /* truncate a fixed point value */
 #define TRUNCATEFIX(a) (a & ~((1 << CSS_RADIX_POINT)- 1 ))
+/* get fractional component of a fixed point value */
+#define FIXFRAC(a) (a & ((1 << CSS_RADIX_POINT)- 1 ))
 
 /* Useful values */
 #define F_PI_2 0x00000648      /* 1.5708 (PI/2) */


-- 
Cascading Style Sheets library
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to