lkml.org 
[lkml]   [2021]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] x86/entry/ia32: Ensure s32 is sign extended to s64
Date
* Richard Palethorpe:

> +#define __SC_COMPAT_CAST(t, a) \
> + (__typeof(__builtin_choose_expr(__TYPE_IS_L(t), 0, 0U))) \
> + (unsigned int)a

So this casts to int (triggering sign extension) if the type on the
64-bit kernel side is long? But not in other cases (unsigned long,
pointer)? Just double-checking.

Thanks,
Florian

\
 
 \ /
  Last update: 2021-09-27 20:52    [W:0.075 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site