Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
zkevm-circuits
zkevm-circuits
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • zkp
  • zkevm-circuitszkevm-circuits
  • Wiki
    • Code notes
  • simple_lt

simple_lt · Changes

Page history
restyle docs authored Aug 07, 2024 by gzxu's avatar gzxu
Show whitespace changes
Inline Side-by-side
Showing with 98 additions and 98 deletions
+98 -98
  • code-notes/simple_lt.markdown code-notes/simple_lt.markdown +98 -98
  • No files found.
code-notes/simple_lt.markdown
View page @ 4303f57c
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
过程推导与讲解(假设lhs为16bit操作数): 过程推导与讲解(假设lhs为16bit操作数):
- 该公式由减法公式推导而来,减法公式中有`a-b=c-carry<<16`,假设a,b为16bit操作数,在sub公式中,我们已有结论carry = 1时,a<b,carry = 0时,a>=b。 - 该公式由减法公式推导而来,减法公式中有`a-b=c-carry<<16`,假设a,b为16bit操作数,在sub公式中,我们已有结论carry = 1时,a<b,carry = 0时,a>=b。
- 将rhs设为2^15,range设为2^16,根据减法公式,则有lt=1时,lhs<rhs,那么代表lhs最高位不为1,该数应为正数,反之则有负数。 - 将rhs设为`2^15`,range设为`2^16`,根据减法公式,则有lt=1时,lhs<rhs,那么代表lhs最高位不为1,该数应为正数,反之则有负数。
### 与lt电路区别 ### 与lt电路区别
......
Clone repository
  • basics
    • evm
    • halo2
  • code notes
    • binary_number_with_real_selector
    • how to use macro
    • simple_lt
    • simple_lt_word
  • Home
  • image
  • zkevm docs
    • 1 introduction
    • 10 public
    • 11 fixed
    • 12 exp
    • 13 keccak
    • 14 comparisons
    • 15 differences
View All Pages

Copyright © 2024 ChainWeaver Org. All Rights Reserved. 版权所有。

京ICP备2023035722号-3

京公网安备 11010802044225号