search for: 10000000000000000000

Displaying 6 results from an estimated 6 matches for "10000000000000000000".

2018 Apr 25
2
compiler-rt incorrect for this udivmodti4 case?
...modti4(a, b, &r); utwords qt; qt.all = q; utwords rt; rt.all = r; fprintf(stderr, "q=0x%.16llX%.16llX\nr=0x%.16llX%.16llX\n", qt.s.high, qt.s.low, rt.s.high, rt.s.low); return 0; } This corresponds to the inputs a=152313999999999991610955792383 b=10000000000000000000 The correct result of division is r=15231400000 q=9999991610955792383 However compiler-rt gives: r=15231399999 q=9999991610955792383 Is this a bug? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180425/f...
2018 Apr 25
0
compiler-rt incorrect for this udivmodti4 case?
...gt; utwords rt; > rt.all = r; > fprintf(stderr, "q=0x%.16llX%.16llX\nr=0x%.16llX%.16llX\n", > qt.s.high, qt.s.low, rt.s.high, rt.s.low); > > return 0; > } > > This corresponds to the inputs > a=152313999999999991610955792383 > b=10000000000000000000 > > The correct result of division is > r=15231400000 > q=9999991610955792383 > > However compiler-rt gives: > r=15231399999 > q=9999991610955792383 Are your results mislabeled? Integer division rounds towards zero, so the correct division result is 15231399999, which you...
2003 Dec 18
2
x100P incoming
Hi Gurus How do I make x100P does not answer incoming calls ? I want * play dead for incoming calls. I do not have any context for incoming calls from x100p, in zapata.conf. Call also get logged into the CDR, that too I do not want. I am using x100p for outgoing calls only. Any help appreciate. Cheers SW
2018 Apr 26
2
windows ABI problem with i128?
...=============================================== pub extern "kernel32" stdcallcc fn ExitProcess(exit_code: c_uint) noreturn; export fn WinMainCRTStartup() noreturn { @setAlignStack(16); @setRuntimeSafety(false); var a: u128 = 152313999999999991610955792383; var b: u128 = 10000000000000000000; var c = a / b; // this generates a call to __udivti3 if (c != b) { @breakpoint(); } ExitProcess(0); } export fn __udivti3(a: u128, b: u128) u128 { @setRuntimeSafety(false); return b; } ================================================================= This result...
2018 Apr 26
0
windows ABI problem with i128?
...===== > > pub extern "kernel32" stdcallcc fn ExitProcess(exit_code: c_uint) noreturn; > > export fn WinMainCRTStartup() noreturn { > @setAlignStack(16); > @setRuntimeSafety(false); > > var a: u128 = 152313999999999991610955792383; > var b: u128 = 10000000000000000000; > var c = a / b; // this generates a call to __udivti3 > > if (c != b) { > @breakpoint(); > } > ExitProcess(0); > } > > export fn __udivti3(a: u128, b: u128) u128 { > @setRuntimeSafety(false); > return b; > } > > > ======...
2018 Apr 26
1
windows ABI problem with i128?
...2" stdcallcc fn ExitProcess(exit_code: c_uint) > noreturn; > > > > export fn WinMainCRTStartup() noreturn { > > @setAlignStack(16); > > @setRuntimeSafety(false); > > > > var a: u128 = 152313999999999991610955792383; > > var b: u128 = 10000000000000000000; > > var c = a / b; // this generates a call to __udivti3 > > > > if (c != b) { > > @breakpoint(); > > } > > ExitProcess(0); > > } > > > > export fn __udivti3(a: u128, b: u128) u128 { > > @setRuntimeSafety(false...