Displaying 20 results from an estimated 29 matches for "memcopi".
Did you mean:
memcopy
2007 Jan 11
2
Vectored I/O for libogg
Folks, the packets I want to place in an ogg stream are concatenations
of two hunks of memory. Rather than memcopy() them into one then pass
them to libogg, I patched framing.c to accept iovecs.
The unified diff is 80 lines, minus the OS-specific stuff for defining
struct ogg_iovec_t - pretty trivial.
Is there any interest in it? Or is libogg frozen while all efforts are
concentrated on
2016 Nov 10
3
array fill idioms
Yes, I know this works peachy keen for char arrays. I'm looking at (which is
hard to express in C) something like
void foo () {
int bar[20] = { 42, 42, ..., 42 };
}
I don't want to do a memcopy of the 20 element constant array, and memset
doesn't work here. I want an intrinsic that copys the scalar int constant 42
to each element of the int array.
bagel
On 11/10/2016 03:30
2008 Aug 23
1
Echo canceller
I am using 'portaudio' and 'speex' to implement a speech audio
capture/playback.
Preprocess works fine but not the echo canceller (associated with
preprocessor).
I have read 'testecho.c' but it didn't help me.
What I am doing bad? This is my implementation:
One thread to capture and playback, both are different functions called in
different times directly from
2014 Aug 07
2
[LLVMdev] Prevent clang from replacing code with library calls
> On Aug 7, 2014, at 4:12 AM, Anton Korobeynikov <anton at korobeynikov.info> wrote:
>
>> I downloaded the latest NDK (r10) and compiled with the following cmd:
>> arm-linux-androideabi-clang myMemcpy.c -S -fno-builtin -o0
>> It still produces assembly with a call to "memcpy". Maybe the -fno-builtin
>> is broken also in the latest release.
>
2011 Jul 06
0
[LLVMdev] code generation removes duplicated instructions
On 6 July 2011 15:57, D S Khudia <daya.khudia at gmail.com> wrote:
> Since I am inserting a new basic block (contains printf statement and
> program exit) which is jumped upon based on the result of
> the comparison, the compiler cannot/shouldnot optimize that away by means of
> DCE or anything else.
It most certainly can, since the comparison yields always the same
result. The
2010 Mar 03
1
[PATCH V2] Btrfs: add direct I/O helper to process inline compressed extents.
Use access_extent_buffer_page() to point at btree location of
inline compressed data so it can be inflated without a memcopy.
Signed-off-by: jim owens <jowens@hp.com>
Signed-off-by: jim owens <jim6336@gmail.com>
---
V2 fixes whitespace checkpatch warning
fs/btrfs/extent_io.c | 16 ++++++++++++++++
fs/btrfs/extent_io.h | 3 +++
2 files changed, 19 insertions(+), 0 deletions(-)
2005 Dec 15
5
Rails vs. J2EE: Sharing state in memory?
Hi,
I am from a Java background and pretty new to Ruby and Rails.
What I am wondering is how I would shared state accross requests and users
without involving IO, i.e. use memory.
My current understanding is that for each request a new process ist spawn
and therefore it gets its own memory. So no sharing can take place between
requests?
Do I understand this right? For those who know
2010 Sep 21
3
[LLVMdev] Vectors in structures
Second question:
I was checking NEON instructions this week and the vector types seem
to be inside structures. If vector types are considered proper types
in LLVM, why pack them inside structures?
That results in a lot of boilerplate code for converting and copying
the values (about 20 lines of IR) just to call a NEON instruction
that, in the end, will be converted into three instructions:
VLDR
2011 Jul 06
2
[LLVMdev] code generation removes duplicated instructions
Hello,
The code snippet pasted in the previous email are generated at -O0 with llc.
Since I am inserting a new basic block (contains printf statement and
program exit) which is jumped upon based on the result of
the comparison, the compiler cannot/shouldnot optimize that away by means of
DCE or anything else.
The same kind of stuff is happening for the following duplication.
bb6.split:
2014 Jan 11
2
[LLVMdev] Memcpy expansion: InstCombine vs SelectionDAG
Hi all,
We currently have code in InstCombine that tries to expand memcpy / memmove intrinsics that are copying something that fits in a single register to a load and store in the IR. We then have other code in SelectionDAG that expands small memcpy intrinsics to sequences of loads and stores. The InstCombine one is useful, as it exposes more optimisation opportunities, but unfortunately it is
2004 May 07
0
Re: Sessioned R web interfaces
Frank,
Both RZope and Rho solve this problem.
RZope
(http://www.analytics.washington.edu/statcomp/projects/rzope/)solves
it by using *nix's fork command, which takes as much
time as a memcopy.
Rho(http://rho-project.org) solves it by maintaining
a pool of idling R processes, which it maintains
active & can pull to do a calculation immediately.
Both of these are pretty
2013 Aug 29
0
Re: Is fallback vhost_net to qemu for live migrate available?
Hi Qin,
On Mon, Aug 26, 2013 at 10:32 PM, Qin Chuanyu <qinchuanyu@huawei.com> wrote:
> Hi all
>
> I am participating in a project which try to port vhost_net on Xen。
Neat!
> By change the memory copy and notify mechanism ,currently virtio-net with
> vhost_net could run on Xen with good performance。
I think the key in doing this would be to implement a property
ioeventfd
2002 Jan 16
2
Problem with ov_read_float()
Greetings,
I'm having some sort of problem using ov_read_float(). Everything looks
good to me, but I'm trashing memory somehow, so clearly I'm screwing
something up. What confuses me is why it takes a ***float for the
buffer.
I call it like so:
float **buffer
bytes_read = ov_read_float(&vf, &buffer, 0)
memcpy (b, *buffer, 0);
This compiles fine, but after a few reads,
2016 Nov 10
2
array fill idioms
Back in the day, we called this a BLT (block transfer, pronouced 'blit') for the PDP-10 instruction of that name.
You can do this by assigning the first value, then do an overlapping memcpy to fill in the rest.
There's probably something clever you can do with vector instructions too, in many cases.
--paulr
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Ryan
2010 Sep 21
0
[LLVMdev] Vectors in structures
On Sep 21, 2010, at 9:33 AM, Renato Golin wrote:
> Second question:
>
> I was checking NEON instructions this week and the vector types seem
> to be inside structures. If vector types are considered proper types
> in LLVM, why pack them inside structures?
Because that is what ARM has specified? They define the vector types that are used with their NEON intrinsics as
2008 Aug 22
2
Digital speech within 100 Hz bandwidth
HA! Just when I was getting ready to drop myself from this list, along
comes a ham radio question!
Shoving digital voice down a 100 Hz pipe would be mighty darned
tough/impossible. N0YMV has a good suggestion. Try those WSJT modes. They
use narrow bandwidth and are fun to play with. There are documented
instances where moon-bounce QSOs have been completed with these modes. No,
it's
2011 Jul 06
2
[LLVMdev] code generation removes duplicated instructions
Hi Renato,
I am trying to add a intrinsic call between the similar two instructions
which either I'll remove or convert to nop in codegen.
Does that kind of seem appropriate for the purpose here?
Thanks
Daya
On Wed, Jul 6, 2011 at 11:55 AM, Renato Golin <renato.golin at arm.com> wrote:
> On 6 July 2011 15:57, D S Khudia <daya.khudia at gmail.com> wrote:
> > Since I am
2016 Nov 10
5
array fill idioms
I am asking for some collective wisdom/guidance.
What sort of IR construct should one use to implement filling each
element in an array (or vector) with the same value? In C++, this
might arise in "std:fill" or "std:fill_n", when the element values in the
vector are identical.
In the D language, one can fill an array or a slice of an array
by an assignment, e.g.
2018 Jan 24
2
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
Hello,
Is there a script to update those test cases? I see mention of a sed script
in the commit message but when I try it (see attached) on sed I get the
following error:
sed: file script line 2: invalid reference \3 on `s' command's RHS
Did I lose something in a copy-paste? Is it not really a sed script? How do
I run it?
On Fri, Jan 19, 2018 at 9:15 AM, Daniel Neilson via
2018 Jan 24
0
[PATCH] D41675: Remove alignment argument from memcpy/memmove/memset in favour of alignment attributes (Step 1)
Hi Alexandre,
The script uses extended-sed syntax, so you need to run sed with the -E option.
For example, when preparing the patch I created a file ( script.sed ) containing all of the lines that I copied into the commit message. Then, I ran this bash one-liner from the test directory:
for f in $(find . -name '*.ll'); do sed -E -i ‘.sedbak' -f script.sed $f; done
When I was happy