Skip to content

Commit

Permalink
[doc] add comment of split
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jun 7, 2024
1 parent b3d6c8b commit aaa977f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions misc/internal.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,7 @@ def naf(x, w=3):
tbl.reverse()
return tbl
```

Consider to apply `w=5` to `(a, b)=split(x)`.
The max value of `a` is `1.1 L = 0b101...` of 128-bit length.
`0b101` is less than `(1<<(w-1))-1` and so negativity and CF operation are unnecessary.

0 comments on commit aaa977f

Please sign in to comment.