Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
2018-BKSC-ALU
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
houmei
March 06, 2018
Technology
290
0
Share
2018-BKSC-ALU
ぼくのかんがえたさいきょうCPU 2018 ALU
houmei
March 06, 2018
More Decks by houmei
See All by houmei
ぼくのかんがえたさいきょうCPU 2018 ベクトル演算
houmei
0
180
ぼくのかんがえたさいきょうCPU 2018 スカラ演算
houmei
0
150
ぼくのかんがえたさいきょうCPU 2018 DATA
houmei
0
160
2017 CPU Architeciture
houmei
0
320
Other Decks in Technology
See All in Technology
AIにより大幅に強化された AWS Transform Customを触ってみる
0air
0
310
Databricks Lakebaseを用いたAIエージェント連携
daiki_akimoto_nttd
0
140
OCI技術資料 : 証明書サービス概要
ocise
1
7.2k
AgentCore RuntimeからS3 Filesをマウントしてみる
har1101
2
140
【関西電力KOI×VOLTMIND 生成AIハッカソン】空間AIブレイン ~⼤阪おばちゃんフィジカルAIに続く道~
tanakaseiya
0
150
最大のアウトプット術は問題を作ること
ryoaccount
0
300
出版記念イベントin大阪「書籍紹介&私がよく使うMCPサーバー3選と社内で安全に活用する方法」
kintotechdev
0
150
【PHPカンファレンス小田原2026】Webアプリケーションエンジニアにも知ってほしい オブザーバビリティ の本質
fendo181
0
150
「活動」は激変する。「ベース」は変わらない ~ 4つの軸で捉える_AI時代ソフトウェア開発マネジメント
sentokun
0
150
主催・運営として"場をつくる”というアウトプットのススメ
_mossann_t
0
100
GitHub Actions侵害 — 相次ぐ事例を振り返り、次なる脅威に備える
flatt_security
13
7.5k
Embeddings : Symfony AI en pratique
lyrixx
0
460
Featured
See All Featured
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
350
Test your architecture with Archunit
thirion
1
2.2k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
460
A Tale of Four Properties
chriscoyier
163
24k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
470
Practical Orchestrator
shlominoach
191
11k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
880
The Cult of Friendly URLs
andyhume
79
6.8k
KATA
mclloyd
PRO
35
15k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
61
43k
Designing for Performance
lara
611
70k
Transcript
΅͘ͷ͔Μ͕͑ͨ ͍͖͞ΐ͏CPU 2018.3.6 @houmei ALU
༰ • ΅͘ͷ͔Μ͕͍͖͑ͨ͞ΐ͏CPUͷղઆ • ཧԋࢉஔ(ALU)ʹ͍ͭͯ twitter : @houmei blog :
ԼੈքౝͷܭࢉػΑ·
ALUͷߏ
ALUͷೖग़ྗ(1) • Ra,Rb(,Rb’...) σʔλೖྗ • Rc ԋࢉछྨͷࢦࣔ • Rd ԋࢉ݁Ռग़ྗ
• Re ԋࢉ݁Ռ༧උग़ྗ • Rf ԋࢉ݁Ռϑϥά
ALUͷೖग़ྗ(2) • ೖྗRa,Rbͱग़ྗRd,Reಉ͡bit෯ • 3Ҿͷԋࢉ(ੵԋࢉͳͲ)Rb’Λ༻ • ࢉͷ݁Ռ2ഒͷbit෯ʹͳΔͷͰRd,Reʹ ग़ྗ • আࢉͷRdʹɺ༨Reʹग़ྗ
ALUͷೖग़ྗ(3) • RcԋࢉͷछྨɺؙΊͳͲΛࢦఆɻ8bit෯ • Rfԋࢉ݁Ռͷঢ়ଶΛग़ྗɻ8bit෯ • ݅ذ໋ྩલͷԋࢉ໋ྩͷRfΛࢀর͢Δ
ԋࢉͷछྨ • ࢉज़ԋࢉɹRa,Rb,Rd,Re(/ුಈখ) • ཧԋࢉɹRa,Rb,Rdbitྻ(Reແޮ) • bitૢ࡞ɹRabitྻɺRbɺRdbitྻɹɹ ―γϑτ໋ྩͳͲ • bitใɹRabitྻɺ(Rbɺ)Rdɹ
―POPC໋ྩͳͲ
ࢉज़ԋࢉ • Ճࢉ/ݮࢉ • ࢉ/ੵԋࢉ • আࢉ/ฏํࠜ • ઈର/ූ߸స •
࠷େ/࠷খ
ཧԋࢉ • RaͱRbͷAND/OR/XOR • Raͷస(NOT) • Ra/Rb/all0ͷબ • ग़ྗͷస(NOT)ɹɹɹɹɹɹɹɹɹɹɹɹɹ ―͜ΕͰͯ͢ΧόʔͰ͖Δ
Ϗοτૢ࡞ • ӈγϑτ/ࠨγϑτ/ࢉज़ӈγϑτ/ࠨճసɹ ―RbྔΛࢦఆ • INSERT/EXTRACTɹɹɹɹɹɹɹɹɹɹɹ ―RbҐஔΛࢦఆ • bitSwapɹ8bitͰҙbitͷೖΕ͑ɹɹɹɹ ―RbύλʔϯΛࢦఆ
Ϗοτใ • POPCɹRaͷ“1”ͷΛΧϯτ • CLZ Count Leading Zero MSB͔Β࿈ଓ͢Δ0ͷ •
CTZ Count Trairing Zero LSB͔Β࿈ଓ͢Δ0ͷ
ϑϥά • ԋࢉ݁Ռͷঢ়ଶΛࣔ͢ • Φʔόʔϑϩʔͷ༗ແ • ݮࢉ࣌ͷRa,Rbͷେখؔɹ→ޙͷذ໋ྩ • ҾͷΤϥʔ(γϑτ໋ྩͷγϑτྔ͕ුಈখ)
ɹ ͭͮ͘ ΅͘ͷ͔Μ͕͍͖͑ͨ͞ΐ͏CPU