جميع الكتب

مهني

1 Markets I: The Ecosystem and Exchange-Traded Marketsالأسواق عبر الإنترنت 2 Markets II: Rates, FX and Creditالأسواق عبر الإنترنت 3 Markets III: Commodities, Energy and Cryptoالأسواق عبر الإنترنت 4 Quantitative Methodsالأساليب عبر الإنترنت 5 Derivatives and Volatilityالمشتقات عبر الإنترنت 6 Rates, Credit, XVA and Riskالفائدة والائتمان والمخاطر عبر الإنترنت 7 Research Craft: Predictors, Backtests, Measurement, Portfoliosالبحث عبر الإنترنت 8 Strategies I: Equities and Futuresالاستراتيجيات عبر الإنترنت 9 Strategies II: Volatility, Relative Value, Macro and the Bank Desksالاستراتيجيات عبر الإنترنت 10 Microstructure and Executionالتنفيذ عبر الإنترنت 11 Market Making and High-Frequency Tradingصناعة السوق عبر الإنترنت 12 Machine Learning for Marketsتعلم الآلة عبر الإنترنت 13 Low-Latency Softwareالتكنولوجيا عبر الإنترنت 14 Networks, Hardware and Trading Infrastructureالتكنولوجيا عبر الإنترنت 15 Research, Data and Risk Platformsالتكنولوجيا عبر الإنترنت 16 The Desk and the Firmالشركة عبر الإنترنت 17 The Industry: Firms, Roles and Careersالمسارات المهنية عبر الإنترنت 18 Interviews I: Maths, Probability and Speedالمسارات المهنية عبر الإنترنت 19 Interviews II: Markets, Trading Games and the Final Roundالمسارات المهنية عبر الإنترنت 20 Interviews III: Codeالمسارات المهنية عبر الإنترنت
التطبيقات حول المدرب تسجيل الدخول ابدأ القراءة

Computer Science · المسرد

ما معنى Mask؟

يُعرف أيضًا باسم: mask (bit mask)

Definition 3.11 High School Computer Science · الفصل 3 — Integers in the Machine

A mask is a number used with a bitwise operation to select some bits of another number: x & m keeps the bits of x where m has a 11 and clears the others; x | m sets them to 11; x ^ m flips them. The mask 1 << i has a single 11, at position ii.

Clearing bit 5 of x (bits are numbered from 0 on the right). The mask has a 0 at position 5 and 1 elsewhere;  copies every bit of x except that one.
Clearing bit 55 of x (bits are numbered from 00 on the right). The mask has a 00 at position 55 and 11 elsewhere; and copies every bit of x except that one.
The colour 0xF4A261 as three bytes. Red is (c >> 16) & 0xFF, green (c >> 8) & 0xFF, blue c & 0xFF.
The colour 0xF4A261 as three bytes. Red is (c >> 16) & 0xFF, green (c >> 8) & 0xFF, blue c & 0xFF.
اقرأ في الفصل →