search for: _bool

Displaying 20 results from an estimated 196 matches for "_bool".

Did you mean: bool
2012 Feb 29
1
dovecot-2.1-pigeonhole-0.3.0 identifier redeclared: sieve_multiscript_run (patch)
...red: sieve_multiscript_run current : function(pointer to struct sieve_multiscript {pointer to struct sieve_instance {..} svinst, pointer to struct sieve_result {..} result, pointer to const struct sieve_message_data {..} msgdata, pointer to const struct sieve_script_env {..} scriptenv, int status, _Bool active, _Bool keep, pointer to struct ostream {..} teststream}, pointer to struct sieve_binary {}, pointer to struct sieve_error_handler {pointer to struct pool {..} pool, int refcount, pointer to struct sieve_instance {..} svinst, pointer to struct sieve_error_handler {..} parent, unsigned int max...
2010 Dec 05
0
[LLVMdev] [cfe-dev] Unexpected results from _Bool cast
...Alistair On 5 Dec 2010, at 09:04, Dave Keck wrote: > Hey list, > > The following program outputs '0' when compiled on my system with `clang a.c`: > > #include <stdio.h> > int main(int argc, const char *argv[]) > { > printf("%d\n", (_Bool)((void *)0xCAFEBABE)); > return 0; > } > > Could someone confirm this is a bug? (Section 6.3.1.2 of C99 seems to > suggest that it is.) I suspect I need to upgrade Xcode/clang/llvm, but > I thought I'd check before I attempt to download that monstrosity on > my w...
2015 Jan 09
2
[LLVMdev] Is address space 1 reserved?
> C requires that (void*)0 generates a pointer that does not compare equal to any valid pointer. It does not require that (void*)foo, where foo is an int of value 0 but not an integer constant expression, give the same value, Does this mean constant propagation can change program semantics? -- Sanjoy
2017 Jan 11
2
Broken OS after upgrade
...omeone can help me figure out what is broken. During configure, it fails with: checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... unknown checking for _LARGE_FILES value needed for large files... unknown checking for _Bool... yes checking for uoff_t... no checking type of off_t... unknown configure: error: Unsupported off_t type -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft."
2018 Apr 24
0
Help: How to define vector element type bool (v8i1) in C builtin function
...ize not an integral multiple of component size typedef bool v8i1 __attribute__ ((vector_size(1))); ^ ~ intrinstest.c:9:57: error: passing 'v8i1' (aka 'int') to parameter of incompatible type '__attribute__((__vector_size__(8 * sizeof(_Bool)))) _Bool' (vector of 8 '_Bool' values) v4i32_r1 = __builtin_dongxin_add_32(v4i32_r2,v4i32_r2,vm_1); I searched online ,bool is sizeof 1 byte,and Bool size is also bigger than 1bit. Is there a way I can define a variable which type is v8i1 . Thanks YuLiu liuyu11 at ict.ac....
2008 May 15
2
[LLVMdev] Troubling promotion of return value to Integer ...
...o do the > promotion at all. However, if you do need to do the promotion, you > need to know the type of "int". how does this work for parameters. Suppose I have an i1 parameter. The AMD64 ABI says it is passed in one of %rsi, %rdx, %rcx, %r8 and %r9 registers. In the case of _Bool (i1) it says that the upper 63 bits will be zero. How does this work? I thought i1 would be legalized to i8 (which is legal, right?). Due to being marked zext, the upper 7 bits of the i8 will be zero. But where does it get extended to an i64 with upper 63 bits zero? Thanks, Duncan.
2018 Apr 18
4
A struct {i8,i64} has size == 12, clang says size 16
...This is for the system triple "x86_64-linux-gnu" What could be causing this difference in alignment and how can I fix it? I'm verifying the native ABI with:     // clang -emit-llvm ll_struct_arg.c -S -o /dev/tty     #include <stddef.h>     typedef struct vpt_data {         _Bool c;         long int b;     } vpt_data;     int main() {         vpt_data v;         vpt_test(v);         auto a = sizeof(v);         auto off = offsetof(vpt_data,b);     } 16 is stored to `a` and 8 to `off`. -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://lea...
2019 Apr 03
2
Inline ASM Question
...positive one instead: .quad 42 + 1 - .Ltmp0 I'm not sure where the problem lies. Should the inline asm promote the "i1" to "i32" during ISEL? Should it be promoted during inlining? Is there a situation where we require the value to be "i1"? -bw typedef _Bool bool; static inline __attribute__((__always_inline__)) bool bar(bool loc) { asm(".quad 42 + %c0 - .\n\t" : : "i" (loc)); return 1; } int foo(void) { return bar(1); } -------------- next part -------------- An HTML attachment was scrubbed... URL...
2018 Apr 18
0
A struct {i8, i64} has size == 12, clang says size 16
...ot;x86_64-linux-gnu" > What could be causing this difference in alignment and how can I fix it? > I'm verifying the native ABI with: > // clang -emit-llvm ll_struct_arg.c -S -o /dev/tty > #include <stddef.h> > typedef struct vpt_data { > _Bool c; > long int b; > } vpt_data; > int main() { > vpt_data v; > vpt_test(v); > auto a = sizeof(v); > auto off = offsetof(vpt_data,b); > } > 16 is stored to `a` and 8 to `off`. > -- > edA-qa mort-ora-y &gt...
2018 May 22
2
double to unsigned char cast
...> 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 fractional part is discarded (i.e. the value is truncated toward zero). If the value of the integral part cannot be represented by the integer type, the behavior is undefined. By definition any double you're allowed to convert to an unsigned char doesn't need the "and". Che...
2018 Nov 07
2
Re: guestfs_launch() fails when C application is started as a systemd service
...gt; So it must be something to do with collectd and how it runs programs. > Is it using LD_PRELOAD trickery, or replacing libc, or using seccomp? If I understand the question correctly - it's about how collectd loads its plugins? If so it uses: static int plugin_load_file(const char *file, _Bool global) { void (*reg_handle)(void); int flags = RTLD_NOW; if (global) flags |= RTLD_GLOBAL; void *dlh = *dlopen*(file, flags); //... reg_handle = (void (*)(void))*dlsym*(dlh, "module_register"); //... *(*reg_handle)();* } Does this give any clues? Best Regards,...
2001 Dec 02
1
Recurrent message inbugger
Hi all, When a program crashes to debugger, I see hundreds of messages like this : failure on _Bool:t(0,21)=@s8;-16; at 16; Unknown type '1' What are these ? Are they critical ? ___________________________________________________________ Nokia 5510 Drole de look et quel son. Cliquez sur http://fr.promotions.yahoo.com/nokia/ d?couvrez le et tentez votre chance pour en gagner un! Fin...
2012 May 14
0
Memory Leak in vorbis_info_clear()
..._encode_init_vbr(&info, 2, 44100, 1.0); vorbis_analysis_init(&dsp, &info); vorbis_comment_init(&comment); vorbis_analysis_headerout(&dsp, &comment, &pkt.ident, &pkt.comment, &pkt.setup); vorbis_block_init(&dsp, &block); } /* init() */ void destroy(_Bool leak) { vorbis_block_clear(&block); if (leak) vorbis_info_clear(&info); vorbis_dsp_clear(&dsp); if (!leak) vorbis_info_clear(&info); vorbis_comment_clear(&comment); } /* destroy() */ int main(int argc, char *argv[]) { _Bool leak = 0; int opt; while (-1 != (opt = g...
2018 Apr 05
0
double to unsigned char cast
...g> 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 fractional part is discarded (i.e. the value is truncated toward zero). If the value of the integral part cannot be represented by the integer type, the behavior is undefined. By definition any double you're allowed to convert to an unsigned char doesn't need the "and". Che...
2008 May 16
0
[LLVMdev] Troubling promotion of return value to Integer ...
...tion at all. However, if you do need to do the promotion, you >> need to know the type of "int". > > how does this work for parameters. Suppose I have an i1 parameter. > The AMD64 ABI says it is passed in one of %rsi, %rdx, %rcx, %r8 and > %r9 registers. In the case of _Bool (i1) it says that the upper 63 > bits will be zero. How does this work? I thought i1 would be > legalized > to i8 (which is legal, right?). Due to being marked zext, the upper > 7 bits of the i8 will be zero. But where does it get extended to > an i64 with upper 63 bits zero?...
2008 May 16
1
[LLVMdev] Troubling promotion of return value to Integer ...
...you do need to do the promotion, you > >> need to know the type of "int". > > > > how does this work for parameters. Suppose I have an i1 parameter. > > The AMD64 ABI says it is passed in one of %rsi, %rdx, %rcx, %r8 and > > %r9 registers. In the case of _Bool (i1) it says that the upper 63 > > bits will be zero. How does this work? I thought i1 would be > > legalized > > to i8 (which is legal, right?). Due to being marked zext, the upper > > 7 bits of the i8 will be zero. But where does it get extended to > > an i64 w...
2018 Apr 22
0
Subject: How to define vector element type bool in builtin function
...ize not an integral multiple of component size typedef bool v8i1 __attribute__ ((vector_size(1))); ^ ~ intrinstest.c:9:57: error: passing 'v8i1' (aka 'int') to parameter of incompatible type '__attribute__((__vector_size__(8 * sizeof(_Bool)))) _Bool' (vector of 8 '_Bool' values) v4i32_r1 = __builtin_dongxin_add_32(v4i32_r2,v4i32_r2,vm_1); I really do not know how to define a vector type whose element type is bool .Appreciate for your help liuyu11 at ict.ac.cn From: via llvm-dev Date: 2018-04-22 03:00 To: llvm-dev...
2012 Jul 24
2
Broadcom NetXtreme bcm5720 in the 9.1 beta
Team I have a Dell PowerEdge R720xd, with the Broadcom NetXtreme bcm5720. I found the following thread: http://forums.freebsd.org/showthread.php?t=31769 I find I am unable to use the NIC's (there are 4 on the server). When we put a cable into it we get a "watchdog timeout -- resetting" error, and the machine will pause for 5 or so seconds. IP may or may not come up randomly.
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:
2004 Nov 28
1
[LLVMdev] attempt to make dummy drivers for llvm-gcc for f77, java and objc
...+ c-common.h tree decl_constant_value (tree a){ return 0;} These functions are for f77,objc and java : llvm_dummies.c : void nothing(){} // do nothing void (*lang_expand_decl_stmt) (tree)=&nothing; void (*lang_expand_function_end) (void)=&nothing; _Bool statement_code_p[256]; // dummy data c_language_kind c_language; tree build_stmt (enum tree_code a, ... ){ return 0 ;} int stmts_are_full_exprs_p (void){ return 0;} int anon_aggr_type_p (tree a){ return 0;} void prep_stmt (tree a){} stmt_t...