Skip to content

Commit

Permalink
uint256: remove unused code (leadingZeros) (holiman#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronChen0 authored May 6, 2024
1 parent 36aedf5 commit 301721b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 58 deletions.
11 changes: 0 additions & 11 deletions mod.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ import (
"math/bits"
)

// Some utility functions

func leadingZeros(x *Int) (z int) {
var t int
z = bits.LeadingZeros64(x[3])
t = bits.LeadingZeros64(x[2]); if z == 64 { z = t + 64 }
t = bits.LeadingZeros64(x[1]); if z == 128 { z = t + 128 }
t = bits.LeadingZeros64(x[0]); if z == 192 { z = t + 192 }
return z
}

// Reciprocal computes a 320-bit value representing 1/m
//
// Notes:
Expand Down
47 changes: 0 additions & 47 deletions mod_test.go

This file was deleted.

0 comments on commit 301721b

Please sign in to comment.