Composing Ancient Mathematical Knowledge Into Powerful Bit-fiddling
Composing Ancient Mathematical Knowledge Into Powerful Bit-fiddling techniques Jamie Pond -- CppCon 2024TLDW; New insights from Ancient Egyptian Multiplication gives us the freedom of synthesising iterationCount ← number of bits in type T result ← 0 while true do if most significant bit of multiplier is 1 then result ← result + multiplicand end if iterationCount lots of bit manipulation, but these operations are very cheap! ● Superscalar CPUs do speculative, out of order, parallel instruction execution via multiple execution units. ● Adding 8 8-bit ints takes0 码力 | 73 页 | 947.99 KB | 5 月前3Template Metaprogramming: Type Traits
beginner oriented: shallow depth, slow current 3Intended Audience • Beginner/Intermediate • Gentle entry: swimming pool to river • Part 1 is beginner oriented: shallow depth, slow current • Not necessarily Beginner/Intermediate • Gentle entry: swimming pool to river • Part 1 is beginner oriented: shallow depth, slow current • Not necessarily beginner to C++, but beginner to traditional template metaprogramming Beginner/Intermediate • Gentle entry: swimming pool to river • Part 1 is beginner oriented: shallow depth, slow current • Not necessarily beginner to C++, but beginner to traditional template metaprogramming0 码力 | 403 页 | 5.30 MB | 5 月前3Oracle VM VirtualBox 4.3.36 User Manual
45 3.1.1 Mac OS X guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.1.2 64-bit guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 3.2 Emulated hardware guest services on Linux . . . . . . . . . . . . . 165 9.4.2 Guest graphics and mouse driver setup in depth . . . . . . . . . . . . . 165 9.5 CPU hot-plugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220 12.5.1 Older Solaris 10 releases crash in 64-bit mode . . . . . . . . . . . . . . 220 12.5.2 Solaris 8 5/01 and earlier may crash on startup . . .0 码力 | 380 页 | 3.79 MB | 5 月前3Oracle VM VirtualBox 4.2.32 User Manual
44 3.1.1 Mac OS X guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.1.2 64-bit guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 3.2 Emulated hardware guest services on Linux . . . . . . . . . . . . . 157 9.4.2 Guest graphics and mouse driver setup in depth . . . . . . . . . . . . . 157 9.5 CPU hot-plugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 12.5.1 Older Solaris 10 releases hang in 64-bit mode . . . . . . . . . . . . . . 209 12.6 Windows hosts . . . . . . . . . . . . . . . . . . . . .0 码力 | 348 页 | 5.93 MB | 5 月前3Oracle VM VirtualBox 5.2.40 User Manual
47 3.1.1 Mac OS X guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.1.2 64-bit guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.2 Unattended guest installation guest services on Linux . . . . . . . . . . . . . 200 9.4.2 Guest graphics and mouse driver setup in depth . . . . . . . . . . . . . 200 9.5 CPU hot-plugging . . . . . . . . . . . . . . . . . . . . . . . record bluescreen information from Windows guests . . . . . . 266 12.3.6 PCnet driver failure in 32-bit Windows Server 2003 guests . . . . . . . 267 12.3.7 No networking in Windows Vista guests . . . .0 码力 | 387 页 | 4.27 MB | 5 月前3Oracle VM VirtualBox 5.2.12 User Manual
47 3.1.1 Mac OS X guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.1.2 64-bit guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 3.2 Unattended guest installation guest services on Linux . . . . . . . . . . . . . 199 9.4.2 Guest graphics and mouse driver setup in depth . . . . . . . . . . . . . 199 9.5 CPU hot-plugging . . . . . . . . . . . . . . . . . . . . . . . record bluescreen information from Windows guests . . . . . . 265 12.3.6 PCnet driver failure in 32-bit Windows Server 2003 guests . . . . . . . 266 12.3.7 No networking in Windows Vista guests . . . .0 码力 | 380 页 | 4.23 MB | 5 月前3Tracy: A Profiler You Don't Want to Miss
scope • zone name is inferred (enclosing function name) • zone color is automatic (per-thread and depth) 22 thread timeline zone statistics Tracy Zoning 101 int foo() { ZoneScoped; ... ... } } • ZoneScopedN • only 1 zone per scope • zone color is automatic (per-thread and depth) • you name it! (must be persistent string literal)• ZoneScoped[N]C • only 1 zone per scope • you the host application (e.g., a plugin)• ZoneScopedS(depth) • captures callstack • adds some overhead • useful for code exploration • max callstack depth: ~60 • (enables selective sampling profiling) • ZoneScoped[N|C|S]0 码力 | 85 页 | 6.51 MB | 5 月前3Oracle VM VirtualBox 4.1.40 User Manual
42 3.1.1 Mac OS X Server guests . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.1.2 64-bit guests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 3.2 Emulated hardware guest services on Linux . . . . . . . . . . . . . 148 9.4.2 Guest graphics and mouse driver setup in depth . . . . . . . . . . . . . 148 9.5 CPU hot-plugging . . . . . . . . . . . . . . . . . . . . . . . for understanding the following chapters of this documentation), it helps to acquaint oneself with a bit of crucial terminology, especially the following terms: Host operating system (host OS). This is the0 码力 | 310 页 | 4.87 MB | 5 月前3C++ Exceptions for Smaller Firmware
I2C Device I2C Device A simplified Introduction to I2C SDA SCL SDA SCL SDA SCL ADDRESS (7-bit) Byte 0 STA NACK/ ACK W/R ACK Byte 1 ACK NACK Wanna Learn More? i2c-bus.org 23 STOPPossible I2C I2C Errors 24 ⚠ ADDR NACK Device Not Present IO ERROR Unexpected Bus State ADDRESS (7-bit) Byte 0 STA NACK/ ACK W/R ACK Byte 1 ACK NACK STOPLet's consider an I2C I/O expander 25 output_pin output_pin cleanup) 123 Note: Instructions are in 8-bit segments Limit is 7 bytes 3 bytes typicallyARM Personality Data: Unwind Instructions SU16 = Short Personality with 16-bit scopes (always 4-bytes) Personality0 码力 | 237 页 | 6.74 MB | 5 月前3julia 1.13.0 DEV
disable_sigint reenable_sigint begin begin...end denotes a block of code. If you already know Julia a bit, you might want to peek ahead at Performance Tips and Workflow Tips, or check out the comprehensive update mechanism for Juliaup with this installation method. The 64 bit version of the MSI installer can be downloaded from here and the 32 bit version from here. By default the install will be a per-user literal depends on whether the target system has a 32-bit architecture or a 64-bit architecture: # 32-bit system: julia> typeof(1) Int32 # 64-bit system: julia> typeof(1) Int64 The Julia internal0 码力 | 2058 页 | 7.45 MB | 3 月前3
共 168 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17