Feature #10087

[PATCH] Specifying "target_cpu" for structure packing in ppc64

Added by Gustavo Frederico Temple Pedrosa 12 months ago. Updated 12 months ago.

[ruby-core:63983]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada

Description

This change adds new "target_cpu" for structure packing in ppc64.

- [x86*|i?86|x64], [packed_struct_unaligned='PACKED_STRUCT(x)'])
+ [x86*|i?86|x64|powerpc64*|ppc64*], [packed_struct_unaligned='PACKED_STRUCT(x)'])

Note: The change is compatible with powerpc64 little endian (powerpc64le).

packed_struct_ppc64.patch Magnifier (537 Bytes) Gustavo Frederico Temple Pedrosa, 07/23/2014 04:58 PM

Associated revisions

Revision 46915
Added by Nobuyoshi Nakada 12 months ago

UNALIGNED_WORD_ACCESS on ppc64

  • include/ruby/defines.h, siphash.c, st.c (UNALIGNED_WORD_ACCESS): add PowerPC64 too, which is capable to access unaligned words. patched by Gustavo Frederico Temple Pedrosa in . [Feature #10081]
  • regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): ditto.

History

#1 Updated by Nobuyoshi Nakada 12 months ago

  • Status changed from Open to Closed

Also available in: Atom PDF