क्या किसी प्रोसेसर ने integer square root instruction को implement किया था?
- Harris RTX 2000 Forth CPU ने multi-step integer square root instruction प्रदान किया था.
- ENIAC ने एक विशेष divider/square-root unit का उपयोग करके प्रति सेकंड अधिकतम 3 square root operations किए थे.
- integer square root की गणना करने का सबसे efficient तरीका Newton-Raphson iteration का उपयोग करके reciprocal (
1/√x) निकालना और फिर उसे मूल संख्या से multiply करना है.
frsqrte और frsqrts जैसे निर्देश, जो ARMv8 के साथ-साथ आधुनिक CPU और GPU में उपयोग होते हैं, initial estimate निकालने और iteration के जरिए precision बढ़ाने के लिए इस्तेमाल किए जाते हैं.
- integer square root की गणना के लिए wide-range precise integer multiplier की आवश्यकता होती है, लेकिन अधिकांश CPU में यह नहीं होता.
- precision एक महत्वपूर्ण factor है, इसलिए instructions को अलग रखा जाता है ताकि programmer precision और speed के बीच संतुलन नियंत्रित कर सके.
GN⁺ की राय
- integer square root instruction कुछ खास application domains में उपयोगी हो सकती है, खासकर 3D graphics calculations जैसे क्षेत्रों में.
- ऐसे instruction वाले processor विशेष algorithms के माध्यम से high-speed computation संभव बनाते हैं, जिससे software level पर complex calculations कम हो सकते हैं.
- लेकिन आधुनिक कई processors ऐसे instructions को built-in रूप में शामिल नहीं करते; इसके बजाय वे इन्हें software libraries या microcode के जरिए implement करते हैं.
- precision और speed के बीच संतुलन महत्वपूर्ण है, और programmer को इसे स्थिति के अनुसार समायोजित कर पाने में सक्षम होना चाहिए.
- यह लेख computer history में रुचि रखने वालों के लिए रोचक जानकारी देता है, खासकर low-level programming या system design में रुचि रखने वालों के लिए.
1 टिप्पणियां
Hacker News राय
AArch64 NEON का URSQRTE निर्देश
एकल clock cycle के भीतर गणना की संभावना
VAX microcode
electromechanical device से square root गणना
integer square root की गणना की विधि
ENIAC पर एक मज़ाकिया जवाब
square root के लगभग अनुमान की विधि
6502 microprocessor प्रशंसकों के लिए square root algorithm का विश्लेषण
ARM VFP का VSQRT निर्देश
square root के बहुत मोटे अनुमान की विधि