aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-01-17 16:53:29 -0800
committerBen Pfaff <blp@nicira.com>2012-02-01 14:15:11 -0800
commit6cc7ea5ea05a71f01526577439ebedcc133f99cd (patch)
tree9847556fb2a43d93fd9270201f077522f435a9b5 /lib/util.h
parentddc4f8e27f231b35df0c73a16bacc17396fb00f3 (diff)
util: New function bitwise_zero().
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/util.h')
-rw-r--r--lib/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/util.h b/lib/util.h
index c8eb0046..d504f2fe 100644
--- a/lib/util.h
+++ b/lib/util.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -211,6 +211,8 @@ bool is_all_ones(const uint8_t *, size_t);
void bitwise_copy(const void *src, unsigned int src_len, unsigned int src_ofs,
void *dst, unsigned int dst_len, unsigned int dst_ofs,
unsigned int n_bits);
+void bitwise_zero(void *dst_, unsigned int dst_len, unsigned dst_ofs,
+ unsigned int n_bits);
void bitwise_put(uint64_t value,
void *dst, unsigned int dst_len, unsigned int dst_ofs,
unsigned int n_bits);