INNER CODE UNIT · Python

t

herumi/mcl · misc/gen_test.py:108

      t = rsp + N*8 # t[N*2]
      inner_mulLow_fastN(q, px, pp - N*8, sf.t, N)
      gen_mulPreN(t, q, pp, sf.t[0:N], sf.t[N], N)
      for i in range(N):
        mov(rax, ptr(t + i*8))
        add_ex(rax, ptr(px + i*8), i == 0)
      y1 = sf.t[0:N]
      y2 = sf.t[N:]
      y2.append(rdx)
      y2.append(rax)
      for i in range(N):
        mov(y1[i], ptr(t + (N + i)*8))
        adc(y1[i], ptr(px + (N + i)*8))
      # px is destroyed
      mov(px, 0)
      adc(px, 0)
      for i in range(N):
        mov(y2[i], y1[i])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…