search for: lewurm

Displaying 5 results from an estimated 5 matches for "lewurm".

Did you mean: leurs
2018 May 25
1
double to unsigned char cast
...uot; before the assert. > > > > - Jay > > > > > > > > ________________________________ > > From: Tim Northover <t.p.northover at gmail.com> > > Sent: Thursday, April 5, 2018 4:41 PM > > To: Jay K > > Cc: llvm-dev at lists.llvm.org; lewurm at gmail.com > > Subject: Re: [llvm-dev] double to unsigned char cast > > > > Hi Jay, > > > > On 5 April 2018 at 07:49, Jay K via llvm-dev <llvm-dev at lists.llvm.org> > > wrote: > >> wrt > >> > >> > https://github.com/mono/mon...
2018 May 22
2
double to unsigned char cast
...sert(i >= 0 && i <= 255); seem very reasonable, assuming there is no "trap" before the assert. - Jay ________________________________ From: Tim Northover <t.p.northover at gmail.com> Sent: Thursday, April 5, 2018 4:41 PM To: Jay K Cc: llvm-dev at lists.llvm.org; lewurm at gmail.com Subject: Re: [llvm-dev] double to unsigned char cast Hi Jay, On 5 April 2018 at 07:49, Jay K via llvm-dev <llvm-dev at lists.llvm.org> wrote: > wrt > https://github.com/mono/mono/commit/fb91fce5d339bb9ffe507588f5bc1d8d6f244d9b > > > This doesn't seem right t...
2018 May 25
0
double to unsigned char cast
...very reasonable, assuming there is no "trap" before the assert. > > - Jay > > > > ________________________________ > From: Tim Northover <t.p.northover at gmail.com> > Sent: Thursday, April 5, 2018 4:41 PM > To: Jay K > Cc: llvm-dev at lists.llvm.org; lewurm at gmail.com > Subject: Re: [llvm-dev] double to unsigned char cast > > Hi Jay, > > On 5 April 2018 at 07:49, Jay K via llvm-dev <llvm-dev at lists.llvm.org> > wrote: >> wrt >> >> https://github.com/mono/mono/commit/fb91fce5d339bb9ffe507588f5bc1d8d6f244d9b...
2018 Apr 05
0
double to unsigned char cast
Hi Jay, On 5 April 2018 at 07:49, Jay K via llvm-dev <llvm-dev at lists.llvm.org> wrote: > wrt > https://github.com/mono/mono/commit/fb91fce5d339bb9ffe507588f5bc1d8d6f244d9b > > > This doesn't seem right to me. Nevertheless, it's what the standard says. C99 6.3.1.4: When a finite value of real floating type is converted to an integer type other than _Bool, the
2018 Apr 05
2
double to unsigned char cast
wrt https://github.com/mono/mono/commit/fb91fce5d339bb9ffe507588f5bc1d8d6f244d9b This doesn't seem right to me. Both of these should have the and 0xff. $ cat /s/1.c unsigned char f1 (double i) { return (unsigned char)i; } unsigned char f2 (double i) { return (unsigned char)(int)i; } $ clang --version Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: