Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Initial opendaylight infrastructure commit!!
[controller.git]
/
third-party
/
openflowj
/
src
/
main
/
java
/
org
/
openflow
/
util
/
U32.java
diff --git a/third-party/openflowj/src/main/java/org/openflow/util/U32.java
b/third-party/openflowj/src/main/java/org/openflow/util/U32.java
new file mode 100644
(file)
index 0000000..
64c324d
--- /dev/null
+++ b/
third-party/openflowj/src/main/java/org/openflow/util/U32.java
@@ -0,0
+1,11
@@
+package org.openflow.util;
+
+public class U32 {
+ public static long f(int i) {
+ return (long)i & 0xffffffffL;
+ }
+
+ public static int t(long l) {
+ return (int) l;
+ }
+}