summaryrefslogtreecommitdiff
path: root/src/util/slab.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-09-07 09:58:18 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-09-18 14:34:46 +0900
commit2fc7c18747250ebf8adf68d2057ec22af6976f29 (patch)
treeaab013c4492a82dd613866a35b98fc9de42f533d /src/util/slab.go
parent8ef2420677abf5cca27b47bead6e70e42220c7aa (diff)
downloadfzf-2fc7c18747250ebf8adf68d2057ec22af6976f29.tar.gz
Revise ranking algorithm
Diffstat (limited to 'src/util/slab.go')
-rw-r--r--src/util/slab.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/slab.go b/src/util/slab.go
new file mode 100644
index 00000000..0c49d2d9
--- /dev/null
+++ b/src/util/slab.go
@@ -0,0 +1,12 @@
+package util
+
+type Slab struct {
+ I16 []int16
+ I32 []int32
+}
+
+func MakeSlab(size16 int, size32 int) *Slab {
+ return &Slab{
+ I16: make([]int16, size16),
+ I32: make([]int32, size32)}
+}