<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xtalco</author_name>
  <author_url>https://blog.hatena.ne.jp/xtalco/</author_url>
  <blog_title>新言語 Xtalを作る日記</blog_title>
  <blog_url>https://xtalco.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>これまでxnewで生成されたオブジェクトは16byteアライメントを持っていてもいなくても、関係なくmallocで取得したメモリに配置していました。 普通のnewも同様に、関係なく配置します。なのでアライメントの問題はどうしようもないだろう、と思っていたのですが、 ゲームにおいては、16byteアライメントを持つことはよくありうる、といったこともあり、対応することにしました。どうやって対応するか、この一週間悩んでやっと実装できました。 xnewで生成されたオブジェクトは、16byteアライメントを持つメンバがある場合16byteアライメントを保障します。 持たないオブジェクトに関してはこれまで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxtalco.hatenadiary.org%2Fentry%2F20100118%2F1263771210&quot; title=&quot; 16byteアライメントを持つメンバを持つオブジェクトに対応 - 新言語 Xtalを作る日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-01-18 08:33:30</published>
  <title> 16byteアライメントを持つメンバを持つオブジェクトに対応</title>
  <type>rich</type>
  <url>https://xtalco.hatenadiary.org/entry/20100118/1263771210</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
