result_x86.go
This file
The walk stopped after 200 commits: lines older than 76efddd point at it.
bash: shift-delete to delete history entries during CTRL-RJunegunn Choibefore adoption76efddd
lines 1–20why, one step back1//go:build 386 || amd64 || arm6423package fzf45import "unsafe"67func compareRanks(irank Result, jrank Result, tac bool) bool {8 left := *(*uint64)(unsafe.Pointer(&irank.points[0]))9 right := *(*uint64)(unsafe.Pointer(&jrank.points[0]))10 if left < right {11 return true12 } else if left > right {13 return false14 }15 return (irank.item.Index() <= jrank.item.Index()) != tac16}1718func sortKey(r *Result) uint64 {19 return *(*uint64)(unsafe.Pointer(&r.points[0]))20}