Skip to content

[Feature Request] Inline High function just like Length for dyn arrays

Original Reporter info from Mantis: MageSlayer @MageSlayer
  • Reporter name: Denis Golovan

Description:

Hi

Recently I had been investigating FPC-generated asm and noticed some inconsistency. It looks like FPC inlines Length function for dyn arrays and strings.

But it does not inline High function for some reason.
High function is in fact even simplier (no need to add 1 for dyn arrays).

Please inline High as well.

Tested under Linux, fpc svn rev.31326

Mantis conversion info:

  • Mantis ID: 28536
  • Fixed in version: 3.3.1
  • Fixed in revision: 43808 (#f7a052f8)
  • Monitored by: » Hixie (Ian Hickson), » davidberneda (david berneda), » @benibela (Benito van der Zander), » Vincent (Vincent Snijders)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information