アセンブラ… Part 12at TECH
アセンブラ… Part 12 - 暇つぶし2ch248:デフォルトの名無しさん
07/12/28 16:07:39
ちょっと誤差がでるけど、俺だったらこうするかな?

new_a = src_a + temp_a;
new_r = (dest_r * temp_a + src_r * src_a) / new_a;



new_a = src_a + temp_a;
temp_div = 65535/new_a; //実際にはテーブル化して temp_div = table[new_a];
new_r = ((dest_r * temp_a + src_r * src_a) * temp_div) >> 16;
// ( x * temp_div ) >> 16 はPMULHWを使用


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch