Recent

Author Topic: Pascal bindings for PrimeSieve library  (Read 500 times)

julkas

  • Hero Member
  • *****
  • Posts: 628
  • KISS principle / Lazarus 2.0.6 / FPC 3.0.4
Pascal bindings for PrimeSieve library
« on: July 06, 2020, 02:00:53 pm »
« Last Edit: July 06, 2020, 02:25:45 pm by julkas »
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

julkas

  • Hero Member
  • *****
  • Posts: 628
  • KISS principle / Lazarus 2.0.6 / FPC 3.0.4
Re: Pascal bindings for PrimeSieve library
« Reply #1 on: July 07, 2020, 05:54:12 pm »
v0.2 released. Needs Delphi testing.
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

julkas

  • Hero Member
  • *****
  • Posts: 628
  • KISS principle / Lazarus 2.0.6 / FPC 3.0.4
Re: Pascal bindings for PrimeSieve library
« Reply #2 on: July 12, 2020, 07:38:13 pm »
v0.3alpha (static loading, Delphi support) is out. Tested on Linux, Mac OSX, Windows.
procedure mulu64(a, b: QWORD; out clo, chi: QWORD); assembler;
asm
  mov rax, a
  mov rdx, b
  mul rdx
  mov [clo], rax
  mov [chi], rdx
end;

 

TinyPortal © 2005-2018