search for: write_le

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

Did you mean: write_len
2010 May 20
0
[LLVMdev] Win32 COFF Support
...p;> (Section->Symbol->Aux [4]) = Section->Header.NumberOfRelocations; + reinterpret_cast <uint16_t &> (Section->Symbol->Aux [6]) = Section->Header.PointerToLineNumbers; This isn't endian-safe; I'd suggest expanding it to 8 assignments. Same issues with the write_le functions. We need endian safety not only so that cross-compiling, for example, from PPC Linux to MingW works, but also so that tests work cross-platform. 3. For the following bit: + typedef std::list <symbol*> symbols; + typedef std::list <section*> sections; Avoid std::list;...
2010 May 20
6
[LLVMdev] Win32 COFF Support
Hi guys, I have attached my patch to support generating win32 COFF object files. I would have posted earlier, but my system drive crashed and I had to rebuild my system; Luckily, my source code was on a secondary drive. I think this would be a good beginning for ongoing support of the COFF object file format and was hoping for some feedback as to whether it was commit worthy or what was needed to
2010 May 20
2
[LLVMdev] Win32 COFF Support
...t;Aux [4]) = > Section->Header.NumberOfRelocations; > + reinterpret_cast <uint16_t &> (Section->Symbol->Aux [6]) = > Section->Header.PointerToLineNumbers; > > This isn't endian-safe; I'd suggest expanding it to 8 assignments. > Same issues with the write_le functions. We need endian safety not > only so that cross-compiling, for example, from PPC Linux to MingW > works, but also so that tests work cross-platform. > OK, I had put the write_le functions so that I could address this later. I should have used them, or something similar for the...
2014 Mar 24
2
[LLVMdev] [RFC] Moving OnDiskHashTable from clang to LLVM
...d functions functions that increment the buffer to Endian.h, and maybe expose an API like so: + unsigned len = support::readFromBuffer<support::ulittle16_t>(Items) For writing, what about adding this to raw_ostream directly? Something like: template <typename T> raw_ostream &write_le(T V) { for (size_t I = 0, E = sizeof(T); I < E; ++I) *this << (unsigned char)(0xFF & (V >> (I * 8))); return *this; } template <typename T> raw_ostream &write_be(T V) { for (size_t I = sizeof(T); I; --I) *this << (unsigned char)(0xFF &...
2020 Aug 05
0
[PATCH v3 37/38] virtio_config: drop LE option from config space
All drivers now use virtio_cread/write_le for LE config space fields. Drop LE option from virtio_cread/write, only leaving the option to access transitional fields. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- include/linux/virtio_config.h | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions...
2014 Mar 22
3
[LLVMdev] [RFC] Moving OnDiskHashTable from clang to LLVM
Rafael Avila de Espindola <rafael.espindola at gmail.com> writes: >> On Mar 22, 2014, at 1:31, Justin Bogner <mail at justinbogner.com> wrote: >> Also, the header includes a "clang::io" namespace with some operations >> for reading and writing little endian files. Should these be directly >> renamed to "llvm::io", or would something like