diff options
author | Neal H. Walfield <neal@gnu.org> | 2008-12-17 13:55:11 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2008-12-17 13:55:11 +0100 |
commit | a858b6d4273835eaf8027275d542c75f210855a3 (patch) | |
tree | 625b6c6fb0bbe9b17abe421d428bffd231c5187d /libviengoos | |
parent | ee961b372e1d403d3fb205b5887025ccc72c0a87 (diff) |
Replace use of l4_msb, etc. with vg_msb.
libpthread/
2008-12-17 Neal H. Walfield <neal@gnu.org>
* signal/signal-dispatch.c: Include <viengoos/math.h>.
(signal_dispatch): Use vg_lsb64, not l4_lsb64.
* sysdeps/viengoos/pt-sigstate.c (__pthread_sigstate): Likewise.
* signal/sigwaitinfo.c (sigwaitinfo): Use vg_msb64, not l4_msb64.
libviengoos/
2008-12-17 Neal H. Walfield <neal@gnu.org>
* t-addr.c: Don't include <l4/math.h>. Include <viengoos/math.h>.
(main): Use vg_msb64 instead of l4_msb64 and vg_lsb64 instead of
l4_lsb64.
viengoos/
2008-12-17 Neal H. Walfield <neal@gnu.org>
* zalloc.c: Don't include <l4/math.h>. Include <viengoos/math.h>.
(zfree): Use vg_msb instead of l4_msb.
* ager.c (update_stats): Likewise.
Diffstat (limited to 'libviengoos')
-rw-r--r-- | libviengoos/ChangeLog | 6 | ||||
-rw-r--r-- | libviengoos/t-addr.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/libviengoos/ChangeLog b/libviengoos/ChangeLog index 5991b0a..f112761 100644 --- a/libviengoos/ChangeLog +++ b/libviengoos/ChangeLog @@ -1,5 +1,11 @@ 2008-12-17 Neal H. Walfield <neal@gnu.org> + * t-addr.c: Don't include <l4/math.h>. Include <viengoos/math.h>. + (main): Use vg_msb64 instead of l4_msb64 and vg_lsb64 instead of + l4_lsb64. + +2008-12-17 Neal H. Walfield <neal@gnu.org> + * viengoos/math.h: Move from ../hurd. Rewrite to use gcc builtin functions. * Makefile.am (viengoos_headers): Add math.h. diff --git a/libviengoos/t-addr.c b/libviengoos/t-addr.c index 1c2494d..a69eb83 100644 --- a/libviengoos/t-addr.c +++ b/libviengoos/t-addr.c @@ -22,7 +22,7 @@ #include <hurd/types.h> #include <viengoos/addr.h> #include <assert.h> -#include <l4/math.h> +#include <viengoos/math.h> char *program_name = "t-addr"; int output_debug = 0; @@ -51,8 +51,8 @@ main (int argc, char *argv[]) { addr = addr_extend (addr, 1, 1); assert (addr_depth (addr) == i); - assert (l4_msb64 (addr_prefix (addr)) == ADDR_BITS); - assert (l4_lsb64 (addr_prefix (addr)) == ADDR_BITS - i + 1); + assert (vg_msb64 (addr_prefix (addr)) == ADDR_BITS); + assert (vg_lsb64 (addr_prefix (addr)) == ADDR_BITS - i + 1); } printf ("ok.\n"); |