Recent

Author Topic: [CLOSED] TBits implementation  (Read 1228 times)

ASerge

  • Hero Member
  • *****
  • Posts: 1411
Re: [CLOSED] TBits implementation
« Reply #15 on: June 20, 2019, 09:29:53 pm »
And without ASM?
What's wrong with asm?

PascalDragon

  • Hero Member
  • *****
  • Posts: 664
  • Compiler Developer
Re: [CLOSED] TBits implementation
« Reply #16 on: June 21, 2019, 09:12:06 am »
And without ASM?
What's wrong with asm?
How about "needs to be ported for each processor"? :-X

julkas

  • Sr. Member
  • ****
  • Posts: 410
  • KISS principle / Lazarus 2.0.0 / FPC 3.0.4
« Last Edit: June 21, 2019, 02:50:30 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;