search for: __builtin_ffs

Displaying 15 results from an estimated 15 matches for "__builtin_ffs".

2012 Apr 27
3
[LLVMdev] Odd PPC inline asm constraint
...glibc /usr/include/bits/fenvinline.h with an error like: ./boost/math/tools/config.hpp:279:10: error: invalid input constraint 'i#*X' in asm feclearexcept(FE_ALL_EXCEPT); ^ /usr/include/bits/fenvinline.h:56:11: note: expanded from macro 'feclearexcept' : : "i#*X"(__builtin_ffs (__excepts))); \ ^ 1 error generated. There is a comment in the file which reads: /* The weird 'i#*X' constraints on the following suppress a gcc warning when __excepts is not a constant. Otherwise, they mean the same as just plain 'i...
2017 May 18
5
[PATCH v3] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
...EFLECT_X: + * DRM_MODE_REFLECT_X: * "reflect-x" * DRM_REFELCT_Y: * "reflect-y" @@ -142,17 +142,17 @@ int drm_plane_create_rotation_property(struct drm_plane *plane, unsigned int supported_rotations) { static const struct drm_prop_enum_list props[] = { - { __builtin_ffs(DRM_ROTATE_0) - 1, "rotate-0" }, - { __builtin_ffs(DRM_ROTATE_90) - 1, "rotate-90" }, - { __builtin_ffs(DRM_ROTATE_180) - 1, "rotate-180" }, - { __builtin_ffs(DRM_ROTATE_270) - 1, "rotate-270" }, - { __builtin_ffs(DRM_REFLECT_X) - 1, "reflect-x&q...
2017 May 19
4
[PATCH v4 1/2] drm/blend: Fix comment typ-o
Fix DRM_REFELCT_Y -> DRM_REFLECT_Y. Signed-off-by: Robert Foss <robert.foss at collabora.com> --- drivers/gpu/drm/drm_blend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c index a0d0d6843288..dee67ef6c670 100644 --- a/drivers/gpu/drm/drm_blend.c +++ b/drivers/gpu/drm/drm_blend.c @@ -129,7 +129,7 @@ *
2017 May 19
2
[PATCH v4 2/2] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
..."reflect-y" * * Rotation is the specified amount in degrees in counter clockwise direction, @@ -142,17 +142,17 @@ int drm_plane_create_rotation_property(struct drm_plane *plane, unsigned int supported_rotations) { static const struct drm_prop_enum_list props[] = { - { __builtin_ffs(DRM_ROTATE_0) - 1, "rotate-0" }, - { __builtin_ffs(DRM_ROTATE_90) - 1, "rotate-90" }, - { __builtin_ffs(DRM_ROTATE_180) - 1, "rotate-180" }, - { __builtin_ffs(DRM_ROTATE_270) - 1, "rotate-270" }, - { __builtin_ffs(DRM_REFLECT_X) - 1, "reflect-x&q...
2017 May 18
0
[PATCH v3] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
...* "reflect-x" > * DRM_REFELCT_Y: > * "reflect-y" > @@ -142,17 +142,17 @@ int drm_plane_create_rotation_property(struct drm_plane *plane, > unsigned int supported_rotations) > { > static const struct drm_prop_enum_list props[] = { > - { __builtin_ffs(DRM_ROTATE_0) - 1, "rotate-0" }, > - { __builtin_ffs(DRM_ROTATE_90) - 1, "rotate-90" }, > - { __builtin_ffs(DRM_ROTATE_180) - 1, "rotate-180" }, > - { __builtin_ffs(DRM_ROTATE_270) - 1, "rotate-270" }, > - { __builtin_ffs(DRM_REFLECT_X) - 1...
2017 May 22
0
[PATCH v4 2/2] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
...; * Rotation is the specified amount in degrees in counter clockwise direction, > @@ -142,17 +142,17 @@ int drm_plane_create_rotation_property(struct drm_plane *plane, > unsigned int supported_rotations) > { > static const struct drm_prop_enum_list props[] = { > - { __builtin_ffs(DRM_ROTATE_0) - 1, "rotate-0" }, > - { __builtin_ffs(DRM_ROTATE_90) - 1, "rotate-90" }, > - { __builtin_ffs(DRM_ROTATE_180) - 1, "rotate-180" }, > - { __builtin_ffs(DRM_ROTATE_270) - 1, "rotate-270" }, > - { __builtin_ffs(DRM_REFLECT_X) - 1...
2017 May 22
0
[PATCH v4 2/2] drm: Add DRM_MODE_ROTATE_ and DRM_MODE_REFLECT_ to UAPI
...; * Rotation is the specified amount in degrees in counter clockwise direction, > @@ -142,17 +142,17 @@ int drm_plane_create_rotation_property(struct drm_plane *plane, > unsigned int supported_rotations) > { > static const struct drm_prop_enum_list props[] = { > - { __builtin_ffs(DRM_ROTATE_0) - 1, "rotate-0" }, > - { __builtin_ffs(DRM_ROTATE_90) - 1, "rotate-90" }, > - { __builtin_ffs(DRM_ROTATE_180) - 1, "rotate-180" }, > - { __builtin_ffs(DRM_ROTATE_270) - 1, "rotate-270" }, > - { __builtin_ffs(DRM_REFLECT_X) - 1...
2016 Sep 16
5
(Thin)LTO llvm build
...h' file not found #include <ndir.h> ... CheckIncludeFile.c:1:10: fatal error: 'sys/ndir.h' file not found #include <sys/ndir.h> ... fatal error: 'intrin.h' file not found These seem like tests that are expected to fail. ... The interesting test int main() { __builtin_ffs(0); return 0; } fails like this: /usr/bin/ld[...]llvm/bin/../lib/LLVMgold.so: cannot open shared object file: No such file[...] I have two questions here: Is there anything I might have missed when configuring the gcc-built llvm install for it to be incomplete in the linker department? I mean,...
2012 Apr 28
0
[LLVMdev] Odd PPC inline asm constraint
...is a comment in the file which reads: > > /* The weird 'i#*X' constraints on the following suppress a gcc > warning when __excepts is not a constant. Otherwise, they mean the > same as just plain 'i'. */ [sinp] > ("mtfsb0 %s0" : : "i#*X"(__builtin_ffs (__excepts))); [snip] > Does anyone know what that "weird" asm constraint actually means? The "i" and "X" constraints are documented here: http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Simple-Constraints.html `i' An immediate integer operand (one with co...
2012 May 10
1
[LLVMdev] Odd PPC inline asm constraint
...ich reads: > > > > /* The weird 'i#*X' constraints on the following suppress a gcc > > warning when __excepts is not a constant. Otherwise, they mean > > the same as just plain 'i'. */ > [sinp] > > ("mtfsb0 %s0" : : "i#*X"(__builtin_ffs (__excepts))); > [snip] > > Does anyone know what that "weird" asm constraint actually means? > > > The "i" and "X" constraints are documented here: > > http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Simple-Constraints.html > > `i'...
2016 Sep 16
2
(Thin)LTO llvm build
...not found >> #include <sys/ndir.h> >> >> ... >> >> fatal error: 'intrin.h' file not found >> >> These seem like tests that are expected to fail. >> >> ... >> >> The interesting test >> >> int main() { __builtin_ffs(0); return 0; } >> >> fails like this: >> >> /usr/bin/ld[...]llvm/bin/../lib/LLVMgold.so: >> cannot open shared object file: No such file[…] > > > I assume that "/usr/bin/ld[...]llvm/bin” is the path where clang is installed right? > It seems that...
2016 Sep 20
4
(Thin)LTO llvm build
...not found >> #include <sys/ndir.h> >> >> ... >> >> fatal error: 'intrin.h' file not found >> >> These seem like tests that are expected to fail. >> >> ... >> >> The interesting test >> >> int main() { __builtin_ffs(0); return 0; } >> >> fails like this: >> >> /usr/bin/ld[...]llvm/bin/../lib/LLVMgold.so: >> cannot open shared object file: No such file[...] >> >> I have two questions here: >> >> Is there anything I might have missed when configuring the...
2012 Apr 28
4
[LLVMdev] Odd PPC inline asm constraint
...ich reads: > > > > /* The weird 'i#*X' constraints on the following suppress a gcc > > warning when __excepts is not a constant. Otherwise, they mean > > the same as just plain 'i'. */ > [sinp] > > ("mtfsb0 %s0" : : "i#*X"(__builtin_ffs (__excepts))); > [snip] > > Does anyone know what that "weird" asm constraint actually means? > > > The "i" and "X" constraints are documented here: > > http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/Simple-Constraints.html > > `i'...
2016 Sep 16
4
(Thin)LTO llvm build
...-- Performing Test HAS_ATTRIBUTE_WARN_UNUSED_RESULT - Failed > > -- Performing Test HAVE___ATTRIBUTE__ > > -- Performing Test HAVE___ATTRIBUTE__ - Failed > > -- Performing Test HAVE_DECL_FFS > > -- Performing Test HAVE_DECL_FFS - Failed > > -- Performing Test HAVE_DECL___BUILTIN_FFS > > -- Performing Test HAVE_DECL___BUILTIN_FFS - Failed > > -- Performing Test HAVE_DECL__BITSCANFORWARD > > -- Performing Test HAVE_DECL__BITSCANFORWARD - Failed > > CMake Error at tools/polly/lib/External/CMakeLists.txt:90 (message): > > No ffs implementation found...
2015 Feb 07
5
[LLVMdev] mesa-10.4.4: BROKEN TLS support in GLX with llvm-toolchain v3.6.0rc2
...INTTYPES_H=1 -D HAVE_STDINT_H=1 -D HAVE_UNISTD_H=1 -D HAVE_DLFCN_H=1 -D "LT_OBJDIR=\".libs/\"" -D YYTEXT_POINTER=1 -D HAVE___BUILTIN_BSWAP32=1 -D HAVE___BUILTIN_BSWAP64=1 -D HAVE___BUILTIN_CLZ=1 -D HAVE___BUILTIN_CLZLL=1 -D HAVE___BUILTIN_CTZ=1 -D HAVE___BUILTIN_EXPECT=1 -D HAVE___BUILTIN_FFS=1 -D HAVE___BUILTIN_FFSLL=1 -D HAVE___BUILTIN_POPCOUNT=1 -D HAVE___BUILTIN_POPCOUNTLL=1 -D HAVE___BUILTIN_UNREACHABLE=1 -D HAVE_DLADDR=1 -D HAVE_PTHREAD=1 -D HAVE_LIBEXPAT=1 -D USE_EXTERNAL_DXTN_LIB=1 -D _GNU_SOURCE -D USE_SSE41 -D DEBUG -D USE_X86_64_ASM -D HAVE_XLOCALE_H -D HAVE_STRTOF -D HAVE_DL...