A New Dragon in the Den: Fast Conversion From Floating-Point NumbersBicho de sete cabeças. It's not a seven-headed beast. It's not rocket science.Cassio Neri Fast conversion from floating-point numbers CppCon 2024 - Aurora (Independent Researcher)MeMe O Neri's equationMe0 码力 | 171 页 | 6.42 MB | 6 月前3
The Swift Programming Language (Swift 5.7) - Apps DissectedPDF conversion courtesy of www.appsdissected.com Welcome to Swift PDF conversion courtesy of www.appsdissected.com About Swift Swift is a fantastic way to write software, whether it’s for phones, desktops have been designed based on the guiding principle that the obvious way to write your code PDF conversion courtesy of www.appsdissected.com should also perform the best. Its combination of safety and capabilities. Our goals for Swift are ambitious. We can’t wait to see what you create with it. PDF conversion courtesy of www.appsdissected.com Version Compatibility This book describes Swift 5.7, the default0 码力 | 1040 页 | 10.90 MB | 1 年前3
Calling Functions A Tutorialf( 1.0 ); } } // namespace N1 int main() { } // Ill-formed, no conversion available // Ill-formed, no conversion available N1::g(); N1::h(); Function (2) hides function (1)(Un-)Qualified Name candidates that match the number of given arguments and that could be called (with or without conversion). 2. Find the best match from the list of viable candidates: Determine a single function that // Default arguments // Less parameters than arguments // More parameters than arguments // No conversion available // Matching constraints // Ellipsis argument // Violated constraintsOverload Resolution0 码力 | 111 页 | 5.11 MB | 6 月前3
Overload Resolutionimplicit conversion 22Overload Resolution ● Type Conversions ○ example of an implicit conversion char str[] = "ABC"; int data = str[0]; // data will equal 65 ○ explicit conversion ■ static_cast another type of explicit conversion called an functional cast if (std::string(“root”) == current_directory) { // do something } 23Overload Resolution ● Standard Conversion Categories ○ exact match match (1) ■ no conversion is required ○ lvalue transformations (2) ■ lvalue to rvalue conversion (based on value categories) ■ array to pointer conversion ■ function to pointer conversion ○ qualification0 码力 | 55 页 | 209.57 KB | 6 月前3
Back to Basics - Function Call Resolutionconversions… Calling f(int)requires no conversion at all. It’s an exact match. Calling f(long int)requires converting intinto “long int”. This is an integral conversion. Calling f(char *)requires converting converting intinto “pointer to char”. This is a pointer conversion. 19 Exact Matches Always Win The compiler prefers “cheap” conversions. Exact matches are the cheapest of all. Thus, f(0)calls: 23 Conversion Rank no conversion Exact Match “cheap” array-to-pointer conversion qualification conversion etc. integral promotion Promotion floating-point promotion integral conversion Conversion0 码力 | 44 页 | 1.30 MB | 6 月前3
Back to Basics Castingoperations to convert from one type to another without explicitly telling it to do so.Implicit Type Conversion Assignment Value* float f = -42.1234; -42.1234016 double d = f; -42.123401641845703 int i = Float(float f_): m{f_}{}; float m; }; Float fl = f; { .m = -42.1234} *64-bit MSVC v142Implicit Type Conversion Assignment Value* float f = -42.1234; -42.1234016 double d = f; -42.123401641845703 int i = Float(float f_): m{f_}{}; float m; }; Float fl = f; { .m = -42.1234} *64-bit MSVC v142Implicit Type Conversion Assignment Value* float f = -42.1234; -42.1234016 double d = f; -42.123401641845703 int i =0 码力 | 117 页 | 1.57 MB | 6 月前3
Adventures in SIMD Thinking (Part 2 of 2)Fast linear median-of-seven filter • Fast small-kernel convolution • Faster (?) UTF-8 to UTF-32 conversion (with AVX2) • No heavy code, but lots of pictures • Thinking "vertically" CppCon 2020 - Adventures ksize(7) ksize(9) ksize(11) ksize(13) ksize(15)Copyright © 2020 Bob Steagall UTF-8 to UTF-32 Conversion Algorithm 32 CppCon 2020 - Adventures in SIMD ThinkingCopyright © 2020 Bob Steagall K E W B C Bob Steagall K E W B C O M P U T I N G 34 CppCon 2020 - Adventures in SIMD Thinking The Basic Conversion Algorithm (UTF-8 to UTF-32) KEWB_ALIGN_FN std::ptrdiff_t UtfUtils::BasicConvert(char8_t const*0 码力 | 135 页 | 551.08 KB | 6 月前3
PostgreSQL 8.2 DocumentationFunctions ...............................................................................209 10. Type Conversion............................................................................................... ...........................................................361 21.2.3. Automatic Character Set Conversion Between Server and Client..................362 21.2.4. Further Reading ....................... .....................................................................................798 ALTER CONVERSION...............................................................................................0 码力 | 1748 页 | 13.12 MB | 1 年前3
PostgreSQL 8.0 DocumentationFunctions ........................................................................176 10. Type Conversion............................................................................................... ...........................................................293 20.2.3. Automatic Character Set Conversion Between Server and Client...........294 20.2.4. Further Reading .............................. .....................................................................................637 ALTER CONVERSION...............................................................................................0 码力 | 1332 页 | 9.76 MB | 1 年前3
PostgreSQL 8.0 DocumentationFunctions ...............................................................................186 10. Type Conversion............................................................................................... ...........................................................310 20.2.3. Automatic Character Set Conversion Between Server and Client..................311 20.2.4. Further Reading ....................... .....................................................................................674 ALTER CONVERSION...............................................................................................0 码力 | 1422 页 | 9.92 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













