From f6e3b2f8a59922405f42c8bc283e0f5546c25d0e Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 11 Oct 2007 22:36:28 +0800 Subject: [ARITH] Add assignment and intmax_t support This patch adds assignment operator support in arithmetic expansions. It also changes the type used to intmax_t. --- src/shell.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/shell.h') diff --git a/src/shell.h b/src/shell.h index 9b67696..98edc8b 100644 --- a/src/shell.h +++ b/src/shell.h @@ -92,3 +92,13 @@ extern char nullstr[1]; /* null string */ #define likely(x) __builtin_expect(!!(x),1) #define unlikely(x) __builtin_expect(!!(x),0) + +/* + * Hack to calculate maximum length. + * (length * 8 - 1) * log10(2) + 1 + 1 + 12 + * The second 1 is for the minus sign and the 12 is a safety margin. + */ +static inline int max_int_length(int bytes) +{ + return (bytes * 8 - 1) * 0.30102999566398119521 + 14; +} -- cgit 1.4.1 d> summary refs log tree commit diff
path: root/bin/man1/psf2png.1 (unfollow)
Commit message (Expand)Author
2020-01-20Blood rush to my HEAD bit hot lockJune McEnroe
2020-01-20Use C syntax for Objective-C .m filesJune McEnroe
2020-01-20Add litterbox to causal.agencyJune McEnroe
2020-01-15Move mksh to Linux-onlyJune McEnroe
2020-01-15Remove gpg from install.shJune McEnroe
2020-01-15Remove git from install.shJune McEnroe
2020-01-14Highlight single-char variables nested in make interpolationsJune McEnroe
2020-01-08Set Bl -column tables to 100% widthJune McEnroe
2020-01-08Don't add dt margins to Bl-compact listsJune McEnroe
2020-01-08Use mandoc -T html for about-filterJune McEnroe
2020-01-05Add The Book of FloraJune McEnroe
2020-01-04Replace gr alias with git resetJune McEnroe
2020-01-03Remove shotty -c flag from upJune McEnroe
2020-01-03Add Darling Don't CryJune McEnroe
2020-01-01Update license header templates for the new yearJune McEnroe
2019-12-26Add \S to sort inside bracesJune McEnroe
2019-12-23Reformat music.txtJune McEnroe
2019-12-23Rename music.md to music.txtJune McEnroe
2019-12-23Add DO YOU DOUBT ME TRAITORJune McEnroe
2019-12-22Add license header to cgit CSSJune McEnroe
2019-12-22Add The Book of EttaJune McEnroe
2019-12-21Revert "Add first working version of imbox"June McEnroe
2019-12-21Add first working version of imboxJune McEnroe
2019-12-20Respect mailmap in gl pretty formatJune McEnroe
2019-12-20Set LANG in cgit filtersJune McEnroe
2019-12-20Source .editrc before applying -v or -eJune McEnroe
2019-12-20Disable signing commitsJune McEnroe
2019-12-19Ignore about-filterJune McEnroe
2019-12-19Fix matching make tags with no sourcesJune McEnroe
2019-12-19Avoid matching := assignments as tagsJune McEnroe
2019-12-18Hide line numbers when rendering mdocJune McEnroe
2019-12-18Customize cgit CSSJune McEnroe
2019-12-18Use :target rather than :focus pseudo-classJune McEnroe
2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe
2019-12-18Add git.causal.agency cgit configJune McEnroe
2019-12-18Bail from hi if input is binaryJune McEnroe
2019-12-16Post "cgit setup"June McEnroenfig?id=baf437be4372a056f921abedee88ca9e5a88862b&follow=1'>Hash SSH known hostsJune McEnroe
2015-12-30Ignore directory .swp filesJune McEnroe
2015-12-16Color prompt yellow in vi normal modeJune McEnroe
2015-11-23Remove colorcolumn at 120June McEnroe
2015-11-23Always git rebase --autosquashJune McEnroe
2015-11-18Add inverted shift to KarabinerJune McEnroe
2015-11-06Clean up git configsJune McEnroe
2015-11-06Add prune scriptJune McEnroe
2015-11-03Update vendored Gruvbox colorschemeJune McEnroe
2015-11-02Redefine _newline_precmd in _newline_precmdJune McEnroe
2015-11-02Print newline before every prompt after firstJune McEnroe
2015-11-02Remove first prompt placementJune McEnroe
2015-11-02Newline before prompt and start at bottom of terminalJune McEnroe
2015-10-27Add chruby to zshrcJune McEnroe