Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
2018-BKSC-ALU
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
houmei
March 06, 2018
Technology
290
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
160
ぼくのかんがえたさいきょうCPU 2018 DATA
houmei
0
160
2017 CPU Architeciture
houmei
0
320
Other Decks in Technology
See All in Technology
あるけみー式LTスライド作成術
alchemy1115
1
210
AI 時代のスタートアップエコシステ厶から考究する技術的負債との向き合い方
m3m0r7
PRO
2
1.5k
AI時代の「技術的負債」の変質ー概念の終焉と再解釈、エージェントと共に向かう先
nwiizo
0
2k
作品が生態系になった ─ Mini Tokyo 3D から世界へ
nagix
0
180
【技術的負債conf】事業成長に伴う技術的負債の説明責任とAIによるモニタリング、認知的負債について
i35_267
2
980
銀行勘定系システムにおける開発プロセス刷新×AIによる環境モダナイゼーション / Development Process Transformation and AI-Driven Environment Modernization
muit
0
1.7k
おい、エージェントを使って終わらせろ
nwiizo
0
200
Snowflakeのコスト最適化を支えるアーキテクチャ設計
ktatsuya
1
1.6k
顧客に向き合う開発組織へ。リアーキテクチャとフィーチャーチーム化で挑む組織改革
safie
0
1.4k
コスト最適化の「めんどくさい」を AWS FinOps Agent でチョット楽にする
classmethod_kaz
0
340
Spring BootからQuarkusへの移行
tatsuya1bm
2
110
OpenTelemetry eBPF Instrumentationの舞台裏 / Behind the Scenes of OpenTelemetry eBPF Instrumentation
ymotongpoo
4
1.2k
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
580
A Modern Web Designer's Workflow
chriscoyier
699
190k
Building the Perfect Custom Keyboard
takai
2
870
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
330
Un-Boring Meetings
codingconduct
0
420
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Claude Code のすすめ
schroneko
67
230k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Done Done
chrislema
186
16k
How to make the Groovebox
asonas
2
2.4k
Docker and Python
trallard
47
4.2k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
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