similar to: The best way of generating a good representation for an array with header?

Displaying 20 results from an estimated 700 matches similar to: "The best way of generating a good representation for an array with header?"

2019 Nov 12
2
The best way of generating a good representation for an array with header?
Yes, we’re actually viewing the struct at an offset. So basically it’s a struct like this: typedef struct { uint32_t size; uint32_t capacity; int array[0]; } Foo; The whole thing is malloc:ed with extra bytes at the end, and capacity is set to that same number of extra bytes. What’s then passed around is actually the int pointer at an offset: &(foo->array) Using the that pointer
2019 Nov 12
2
The best way of generating a good representation for an array with header?
The advantages: 1. A pointer to the struct offset can be converted to a pointer without any cost. 2. A nullpointer to a stretchy buffer can be treated as a zero length array. Consequently no actual struct allocation is needed to represent a zero length array. 3. A reference to the array is the same size as to a pointer. 4. It can be converted to and back from an pointer without losing any
2019 Dec 16
3
Using "opaque pointers" right now?
I was looking at the talk from 2015 about opaque pointers. Aside from using the new methods (e.g. LLVMBuildGEP2), is there any other way to perpare for this change? And also - is it possible to use something like opaque pointers (that is using a single pointer type) even before the switch has been flipped in LLVM? Christoffer AEGIK / www.aegik.se
2019 Dec 17
2
Using "opaque pointers" right now?
> pointers. If you're writing a front-end this probably means you need > to keep your AST's representation of element types alongside LLVM > pointer Values in your own data-structures Yeah, that’s no problem - the type is needed for signed/unsigned integer distinctions anyway. There’s no getting around having one’s own type hierarchy. >> And also - is it possible to use
2008 Apr 09
8
Testing basic direct x capability
Hi, I am running wine 0.9.58 and having problems running Counter Strike: Source, Rainbow Six 3: Raven Shield. I think this is caused by the direct x layer in wine. My system runs opengl programs fine using the ATI driver (Radeon 3850). Is there any way I can test directx functionality without having to download a game? Dxdiag.exe is not included in wine. Best regards, Chris
2015 Jul 01
4
[PATCH] MAINTAINERS: separate section for s390 virtio drivers
The s390-specific virtio drivers have probably more to do with virtio than with kvm today; let's move them out into a separate section to reflect this and to be able to add relevant mailing lists. CC: Christian Borntraeger <borntraeger at de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck at de.ibm.com> --- MAINTAINERS | 10 +++++++++- 1 file changed, 9 insertions(+), 1
2015 Jul 01
4
[PATCH] MAINTAINERS: separate section for s390 virtio drivers
The s390-specific virtio drivers have probably more to do with virtio than with kvm today; let's move them out into a separate section to reflect this and to be able to add relevant mailing lists. CC: Christian Borntraeger <borntraeger at de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck at de.ibm.com> --- MAINTAINERS | 10 +++++++++- 1 file changed, 9 insertions(+), 1
2006 May 10
2
hard_breaks
Dear Dressers of RedCloth, I have a question: text = "Foo\nBar\n\nBaz" RedCloth.new(text, [ :hard_breaks ]).to_html # => "<p>Foo<br />Bar<br />\nBaz</p>" Shouldn''t that really be "<p>Foo<br />Bar</p><p>Baz</p>"? So long, -- Christoffer Sawicki
2009 Jan 18
9
Limited number of phy disks?
In my experiments with setting up a NAS as a VM, I can only successfully import three drives; the root drive, the cd and one more. However, I have plenty that I want to use: disk=[''file:/vserver/vm_disks/Patch.disk.xm,hda,w'', ''phy:/dev/sda,ioemu:hdd,w'', ''phy:/dev/sdb,ioemu:hde,w'', ''phy:sdc,ioemu:hdf,w'',
2004 Jan 22
4
Fitting compartmental model with nls and lsoda?
Dear Colleagues, Our group is also working on implementing the use of R for pharmacokinetic compartmental analysis. Perhaps I have missed something, but > fit <- nls(noisy ~ lsoda(xstart, time, one.compartment.model, c(K1=0.5, k2=0.5)), + data=C1.lsoda, + start=list(K1=0.3, k2=0.7), + trace=T + ) Error in eval(as.name(varName), data) : Object
2004 Jul 27
1
Samba 3.0.5 cannot mount Windows 2003 shares
I'm having a real hair-raising problem here and I thought maybe someone could help. At least I hope so. My workstation was running 3.0.2a, upgraded to 3.0.5. After upgrading to 3.0.5, I can no longer mount shares on my 2003 server. This started happening on an upgrade to 3.0.4 as well, I might add. Permissions-wise: I own the directory mounts on the local Linux workstation,
2015 Jul 07
1
[PATCH] MAINTAINERS: separate section for s390 virtio drivers
On Wed, 1 Jul 2015 17:17:41 +0200 Paolo Bonzini <pbonzini at redhat.com> wrote: > > > On 01/07/2015 17:15, Cornelia Huck wrote: > > The s390-specific virtio drivers have probably more to do with virtio > > than with kvm today; let's move them out into a separate section to > > reflect this and to be able to add relevant mailing lists. > > > >
2015 Jul 07
1
[PATCH] MAINTAINERS: separate section for s390 virtio drivers
On Wed, 1 Jul 2015 17:17:41 +0200 Paolo Bonzini <pbonzini at redhat.com> wrote: > > > On 01/07/2015 17:15, Cornelia Huck wrote: > > The s390-specific virtio drivers have probably more to do with virtio > > than with kvm today; let's move them out into a separate section to > > reflect this and to be able to add relevant mailing lists. > > > >
2017 Jan 17
1
Mail rescue from Dovecot Server
Hi all, I have a mail folder from Dovecot server. Screenshot: https://i.stack.imgur.com/11NHs.jpg Is there any way to import to Outlook, or otherwise convert to readable format? I could setup Dovecot on my own server if there is any point.
2006 Jul 02
4
2 bugs when parsing emphasized or bold text
I''ve found 2 bugs that produce (imho) incorrect rendering results: 1) The regexp for strong (*) and bold (**) is greedy, which produces very strange results. The simplest way to show the problem is to give an example. This is the original code: ===== Strong: Lets do a little test *t* this should not be strong *u*. Bold: Lets do another test **t** this should not be bold **u**. =====
2010 Mar 26
4
Creating a vector of categories
Hi, I have a column in a data frame looking something like: $sex $language $count male english 0 male english 0 female english 32 male spanish 154 female english 11 female norweigan 7 and so on. What I want to do is to order these in to categories, for instance one category where count>=0 & count<10 and so on.. I want my data to turn out looking something like: male
2003 May 02
2
Isolinux init problem
Hello I have a problem with isolinux my root filesystem is a iso9660 cdrom , it wont start the init but it mounts /dev/hdc as root. Cant linux start directly from a the cdrom or is this another problem? I get this: VFS: Mounted root filesystem (iso9660) readonly Freeing unused kernel memory: 2808kb freead Warning: unable to open an intital console Kernel panic: no init found. try parsing
2003 Feb 28
1
unique turns ordered into factor (PR#2591)
[reported originally by Christoffer Tornøe] > f <- ordered(month.name) > f [1] January February March April May June July [8] August September October November December 12 Levels: April < August < December < February < January < July < ... < September > unique(f) [1] January February March April May June July
2015 Jul 07
5
[PULL] virtio/vhost: cross endian support
On Tue, Jul 07, 2015 at 06:36:53PM +0200, Thomas Huth wrote: > On Thu, 2 Jul 2015 11:32:52 +0200 > "Michael S. Tsirkin" <mst at redhat.com> wrote: > > > On Thu, Jul 02, 2015 at 11:12:56AM +0200, Greg Kurz wrote: > > > On Thu, 2 Jul 2015 08:01:28 +0200 > > > "Michael S. Tsirkin" <mst at redhat.com> wrote: > ... > > > >
2015 Jul 07
5
[PULL] virtio/vhost: cross endian support
On Tue, Jul 07, 2015 at 06:36:53PM +0200, Thomas Huth wrote: > On Thu, 2 Jul 2015 11:32:52 +0200 > "Michael S. Tsirkin" <mst at redhat.com> wrote: > > > On Thu, Jul 02, 2015 at 11:12:56AM +0200, Greg Kurz wrote: > > > On Thu, 2 Jul 2015 08:01:28 +0200 > > > "Michael S. Tsirkin" <mst at redhat.com> wrote: > ... > > > >