- Forked from Godot Engine 4.7-dev (MIT License) - Rebranded to AeThex Engine with cyan/purple theme - Added AI-powered development assistant module - Integrated Claude API for code completion & error fixing - Custom hexagon logo and branding - Multi-platform CI/CD (Windows, Linux, macOS) - Built Linux editor binary (151MB) - Complete source code with all customizations Tech Stack: - C++ game engine core - AI Module: Claude 3.5 Sonnet integration - Build: SCons, 14K+ source files - License: MIT (Godot) + Custom (AeThex features) Ready for Windows build via GitHub Actions!
1.4 KiB
1.4 KiB
Grisu2
This is a C++11 implementation of the Grisu2 algorithm for converting floating-point numbers to decimal strings.
The Grisu2 algorithm is by Florian Loitsch, based on the work of Robert G. Burger and R. Kent Dybvig:
- https://dl.acm.org/doi/10.1145/1806596.1806623 [1] Loitsch, "Printing Floating-Point Numbers Quickly and Accurately with Integers", Proceedings of the ACM SIGPLAN 2010 Conference on Programming Language Design and Implementation, PLDI 2010
- https://dl.acm.org/doi/10.1145/231379.231397 [2] Burger, Dybvig, "Printing Floating-Point Numbers Quickly and Accurately", Proceedings of the ACM SIGPLAN 1996 Conference on Programming Language Design and Implementation, PLDI 1996
The original C implementation is by Florian Loitsch:
The implementation simplified and adapted to JSON and C++11 by Daniel Lemire as part of simdjson:
The grisu2.h file is the same as to_chars.cpp but with godot.patch applied to it, with the following changes:
- Simplify namespaces to just be one
grisu2namespace. - Rename functions to ensure their names are unique.
- Make
to_charshandle both float and double types instead of just double. - Remove the trailing
.0logic to match Godot's existingString::num_scientificbehavior.