[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-dev
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5 |
Date: |
Wed, 07 Jun 2017 05:15:26 +0200 (CEST) |
>> However, the majority of input data in most formats are deltas, and
>> here you would have to check after every addition, subtraction, or
>> multiplication whether you get something `unreasonable'.
>
> BTW are you aware of gcc's and clang's built-in functions that perform
> arithmetic with overflow checking? Maybe they could help.
> https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html
Thanks, I know these functions. They would help if I wanted to do
something in case of overflow. However, I want to do *nothing*, so I
simply use casts.
Werner
- [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Hin-Tak Leung, 2017/06/04
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Werner LEMBERG, 2017/06/04
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Alexei Podtelezhnikov, 2017/06/04
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Werner LEMBERG, 2017/06/04
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Alexei Podtelezhnikov, 2017/06/04
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Werner LEMBERG, 2017/06/04
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Markus Trippelsdorf, 2017/06/05
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5,
Werner LEMBERG <=
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Behdad Esfahbod, 2017/06/07
- Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Werner LEMBERG, 2017/06/07
Re: [ft-devel] those OVERFLOW_* macros and Fontval b69 (Re: Freetype-devel Digest, Vol 149, Issue 5, Alexei Podtelezhnikov, 2017/06/05