8c6fca48ea
subrepo: subdir: "dotfiles/.vim/plugged/fzf" merged: "dad26d81d" upstream: origin: "https://github.com/junegunn/fzf.git" branch: "master" commit: "dad26d81d" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
16 lines
364 B
Go
16 lines
364 B
Go
//go:build 386 || amd64
|
|
|
|
package fzf
|
|
|
|
import "unsafe"
|
|
|
|
func compareRanks(irank Result, jrank Result, tac bool) bool {
|
|
left := *(*uint64)(unsafe.Pointer(&irank.points[0]))
|
|
right := *(*uint64)(unsafe.Pointer(&jrank.points[0]))
|
|
if left < right {
|
|
return true
|
|
} else if left > right {
|
|
return false
|
|
}
|
|
return (irank.item.Index() <= jrank.item.Index()) != tac
|
|
}
|