summaryrefslogtreecommitdiff
path: root/inttest/thooks/thooks_rt.erl
diff options
context:
space:
mode:
authorSteve Vinoski <vinoski@ieee.org>2011-05-30 21:13:38 -0400
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2011-05-31 10:47:45 +0200
commit0bbb2985f069c2c1785d33da6887598673cdaaac (patch)
treef73bdd7f502f97f9588f91ac72b11bb119a2dbc2 /inttest/thooks/thooks_rt.erl
parentaef6c70f598cf4cd1414bf5d4284e536f450a21a (diff)
Use external wordsize to get emulator build arch
Calling erlang:system_info(wordsize) yields the internal word size of the Erlang emulator. But due to the halfword emulator, need to pass {wordsize, external} instead to get the word size, or pointer size, as seen by external code such as NIFs. The halfword emulator has 4 byte internal words but 8 byte external words due to 64-bit compilation, which means NIFs for the halfword emulator also have to be compiled 64-bit. But just passing wordsize is equivalent to passing {wordsize, internal}, which does not indicate the pointer size for the halfword emulator. Older versions of Erlang do not support {wordsize, external}, though, so continue to pass just wordsize for those versions.
Diffstat (limited to 'inttest/thooks/thooks_rt.erl')
0 files changed, 0 insertions, 0 deletions