This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ | |
dist/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Bloaty | |
brew install bloaty | |
# Build -Os -g | |
dsymutil APP | |
strip APP | |
bloaty -d symbols --demangle=full -s file -n 0 --debug-file=APP.dSYM/Contents/Resources/DWARF/APP APP | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void cairo_round_rectangle(cairo_t* cr, const double* values) { | |
const double l = values[0]; | |
const double t = values[1]; | |
const double r = values[2]; | |
const double b = values[3]; | |
const double maxRadius = fmin((b - t) / 2, (r - l) / 2); | |
const double r0 = math::clamp(values[4], -maxRadius, maxRadius); | |
const double r1 = math::clamp(values[5], -maxRadius, maxRadius); |