发明名称 FLEXIBLE HIGH-SPEED GENERATION AND FORMATTING OF APPLICATION-SPECIFIED STRINGS
摘要 Flexible high-speed generation and formatting of application-specified strings is available through table-based base conversion which may be integrated with custom formatting, and through printf-style functionality based on separate control string parsing and specialized format command sequence execution. Mechanisms include digit group tables for immediate output with or without separation characters, dynamic format templates, format localization and customization, funnels, digit extraction in left-to-right or right-to-left order, scaling and size estimation, leading bit identification, casting, indexing with exponent bits, division via multiplication by select constants and shifts, fractional value manipulations, batching transformations, stamping safety zones, rounding tools, JUMP and CALL avoidance, tailoring to processor characteristics and word size, conversions between various numeric types and representations, command stitching, stack parameter analysis, printf compilation, and others. Tools are also provided for web page rendering, embedded and realtime systems, various other application areas, string length determination, string copying, and other string operations.
申请公布号 US2016062954(A1) 申请公布日期 2016.03.03
申请号 US201314425046 申请日期 2013.09.06
申请人 NumberGun LLC 发明人 Ruff Eric J.;Ogilvie John W.
分类号 G06F17/21;G06F9/45;G06F17/27 主分类号 G06F17/21
代理机构 代理人
主权项 1. A computer-readable storage medium (114) configured with data (118) and with instructions (116) that when executed by at least one processor (112) causes the processor(s) to perform a technical process comprising the steps of: parsing (580) a format control string (942) which is a parameter (918) of a printf-style function (924), the format control string including at least one literal portion (943) and also including at least one reference (945) to a non-literal parameter; and compiling (576) a custom implementation (982) of the printf-style function, based on the parsing, by selecting (577) and sequencing (579) code fragments (984), the custom implementation being specific to the format control string in that the code fragments are selected and sequenced to correspond to the literal portion(s) and the parameter reference(s) of the format control string.
地址 Salt Lake City UT US