search for: length_ptr

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

2014 Dec 18
2
[LLVMdev] missing optimization for icmps in induction variables?
Hi all, I'm trying to get llvm to optimize away the %cmp to true in define i32 @foo(i32* %array, i32* %length_ptr, i32 %init) { entry: %length = load i32* %length_ptr, !range !0 %len.sub.1 = sub i32 %length, 1 %upper = icmp slt i32 %init, %len.sub.1 br i1 %upper, label %loop, label %exit loop: %civ = phi i32 [ %init, %entry ], [ %civ.inc, %latch ] %civ.inc = add i32 %civ, 1 %cmp = icmp slt i32...
2015 Jan 08
2
[LLVMdev] missing optimization for icmps in induction variables?
...a reason to prefer GVN over that? On Wed, Jan 7, 2015 at 10:06 PM, Nick Lewycky <nicholas at mxc.ca> wrote: > Sanjoy Das wrote: >> >> Hi all, >> >> I'm trying to get llvm to optimize away the %cmp to true in >> >> define i32 @foo(i32* %array, i32* %length_ptr, i32 %init) { >> entry: >> %length = load i32* %length_ptr, !range !0 >> %len.sub.1 = sub i32 %length, 1 >> %upper = icmp slt i32 %init, %len.sub.1 >> br i1 %upper, label %loop, label %exit >> >> loop: >> %civ = phi i32 [ %init, %en...
2018 Dec 03
3
[PATCH] removing an old API.
...113). When doing this in sshd.c too, which I think is pretty straightforward, the packet_set_connection() will become obsolete. diff --git a/opacket.c b/opacket.c index 92e17a5..bff4c36 100755 --- a/opacket.c +++ b/opacket.c @@ -202,14 +202,6 @@ ssh_packet_get_cstring(struct ssh *ssh, u_int *length_ptr) /* Old API, that had to be reimplemented */ -void -packet_set_connection(int fd_in, int fd_out) -{ - active_state = ssh_packet_set_connection(active_state, fd_in, fd_out); - if (active_state == NULL) - fatal("%s: ssh_packet_set_connection failed", __func__); -} - u_int packet_ge...
2003 Oct 08
4
OS/390 openssh
...("buffer_get_bignum2: cannot handle BN of size %d", len); @@ -212,6 +212,36 @@ * will be stored there. A null character will be automatically appended * to the returned string, and is not counted in length. */ +#ifdef CHARSET_EBCDIC +void * +buffer_get_binary(Buffer *buffer, u_int *length_ptr) +{ + u_char *value; + u_int len; + + /* Get the length. */ + len = buffer_get_int(buffer); + if (len > 256 * 1024) + fatal("buffer_get_binary: bad length %d", len); + /* Allocate space for the object. Add one byte for a null character. */ + value = xmalloc(len + 1); + /* Get the str...
2000 Jan 17
5
AANOUNCE: openssh-1.2.1pre27
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A couple of silly errors, and one dangerous bug were in the pre26 release. This release corrects them. http://violet.ibs.com.au/openssh/files/openssh-1.2.1pre27.tar.gz If you want RPMs or any of the other files, please use a mirror: http://violet.ibs.com.au/openssh/files/MIRRORS.html Changes: - Using __snprintf is *NOT SAFE* on old Solaris.
2000 Jan 17
5
AANOUNCE: openssh-1.2.1pre27
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 A couple of silly errors, and one dangerous bug were in the pre26 release. This release corrects them. http://violet.ibs.com.au/openssh/files/openssh-1.2.1pre27.tar.gz If you want RPMs or any of the other files, please use a mirror: http://violet.ibs.com.au/openssh/files/MIRRORS.html Changes: - Using __snprintf is *NOT SAFE* on old Solaris.