Recent

Author Topic: [SOLVED] TREAP class code review  (Read 204 times)

julkas

  • Sr. Member
  • ****
  • Posts: 305
  • KISS principle / Lazarus 2.0.0 / FPC 3.0.4
[SOLVED] TREAP class code review
« on: March 31, 2019, 01:35:15 pm »
I am a beginner and I would like to know the opinion of experienced PASCAL programmers about my code.
Here is my object-oriented implementation of the TREAP data structure https://github.com/JulStrat/ftreap.

Thanks.

julkas[at]spoj[dot]com
« Last Edit: April 02, 2019, 09:16:55 am 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;
(* Pointer game *) Inc(ptr, 1); (* vs *) ptr := ptr + 1;