[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] 1bbf2d: Let the validfp macro in sqWin32Backtrace be X64 c...

GitHub noreply at github.com
Wed Jul 6 19:48:24 UTC 2016

  Branch: refs/heads/Cog
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 1bbf2d2e33a44806a614467fe02f593deab4b40d
  Author: Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>
  Date:   2016-07-06 (Wed, 06 Jul 2016)

  Changed paths:
    M platforms/win32/vm/sqWin32Backtrace.c

  Log Message:
  Let the validfp macro in sqWin32Backtrace be X64 compatible

Note: sizeof(fp) is either 4 for IA32 or 8 for X64, and sizeof(fp)-1 is either 3 or 7,
so fp&(sizeof(fp)-1) checks either that last 2 bits are zero in IA32, or last 3 bits are zero on X64
in other words, it checks that fp is correctly aligned.

More information about the Vm-dev mailing list