search for: adder

Displaying 20 results from an estimated 39 matches for "adder".

Did you mean: added
2007 Oct 18
12
first cut at blockless given/when/then
Hi all, I committed a first cut at blockless Givens/Whens/Thens to RSpec''s trunk: cd /path/to/rspec/project svn up cd rspec bin/spec examples/story/calculator.rb Take a look at examples/story/calculator.rb to see what''s going on. Needs docs!!!! Thoughts welcome. I''ve also got a cut at the plain text parser checked in, but it''s not hooked up to anything
2008 Jan 11
9
Varying test data
...a spec, then write the smallest amount of code I can to pass it (especially when "ping pong pairing"). Sometimes this means hard-coding a return value, which means another spec is needed to prove that the code is really behaving as it should. Trivial example: ---------- describe Adder do it "should add two numbers" do Adder.add(2, 2).should == 4 end end class Adder def add a, b 4 end end ---------- describe Adder do it "should add 2 and 2" do Adder.add(2, 2).should == 4 end it "should add 3 and 4" do Adder.a...
2010 Aug 26
1
list of closures
Hi, I wanted to create a list of closures. When I use Map(), mapply(), lapply(), etc., to create this list, it appears that the wrong arguments are being passed to the main function. For example: Main function: > adder <- function(x) function(y) x + y Creating list of closures with Map(): > plus <- Map(adder,c(one=1,two=2))> plus$one(1)[1] 3> plus$two(1)[1] 3 Examining what value was bound to "x": > Map(function(fn) get("x",environment(fn)),plus)$one[1] 2$two[1] 2 This is wh...
2024 Apr 12
1
Debugging functions defined (locally) inside another functions
...; > So debug(f) produces > Error in debug(f) : argument must be a function Can you show more information about the call that produces `f`? Where does `g` come into play? Following ?ggplot2::ggproto, I can trigger the browser if I reach into the environment of the publicly available method: Adder <- ggproto(...) # from the example debug(environment(Adder$add)$add) Adder$add(1234) # debugging in: add(..., self = self) # debug ?? #3: { # self$x <- self$x + n # self$x # } -- Best regards, Ivan
1996 Dec 06
1
Stupid passwd tricks: User with blank GECOS can''t change passwd
...ent ways that "passwd" could run into trouble. On MY Red Hat 4.0 system it does "segmentation fault" when I have no GECOS field. My "test" user couldn''t authenticate himself, right after I chaged the passwd to a "known" value while I was root. [root@adder ~]$ passwd test New password: New password (again): Password changed passwd: all authentication tokens updated successfully [root@adder ~]$ su - test [test@adder test]$ passwd Password: Password: Password: passwd: Authentication failure [test@adder test]$ and [wolff@adder ~]$ passwd Password: New...
2024 Apr 12
1
Debugging functions defined (locally) inside another functions
Thank you Ivan, your example solves my issue this time through debug(environment(Adder$add)$add) Just for the future, you say Moreover, `g` doesn't exist at all until f() is evaluated and reaches this point. If `f` was a function, it would be possible to trace() it, inserting a call to debug(g) after it's created. How should I call trace() if f was a function?...
2024 Apr 12
3
Debugging functions defined (locally) inside another functions
Hi all, I am trying to debug an error of a function g defined and used inside another function f of a package. So I have f <- function(whatever){ ... g <- function(whatever2){ ... } ... } If I wanted to debug some thing directly inside f I would do debug(f). But this does not go inside g code. On the other hand, debug(g) does not work as g is not a defined function in the
2005 Jul 27
3
[LLVMdev] How to define complicated instruction in TableGen (Direct3D shader instruction)
...component will be update '.xxyy' and '.zzzz' are swizzle masks, specify the component permutation, simliar to the Intel SSE permutation instruction SHUFPD '_bias' and '_x2' are modifiers. they modify the value of source operands and send the modified values to the adder. '_bias' = source - 0.5, '_x2' = source * 2 '_sat' is an instruction modifier. when specified, it saturates (or clamps) the instruction result to the range [0, 1] before writing to the destination register. All of these 'writemask', 'swizzle', 'source m...
2008 Aug 13
0
[LLVMdev] A case where llvm created different cfg for same code
Hi, > 7 for(i=0; i<j && i+j+1<N; i++) { > > 8 for(i=0; i<j && i<N-j-1; i++) { the arithmetic might overflow in one of these but not in the other. Best wishes, Duncan.
2003 Mar 23
1
config help to open win98,2000
...m I am installing linux 8 in one system in windows nwtwork (nearly 200 window 98.2000 systems) from my linux 8 system I can able to view all windows system and shard folders if open the folder system give the error massage your not having permission to open pleas help me to open and copy my email adders is ka_sukkur@yahoo.com ka_sukkur@hotmail.com __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
2006 Jun 01
1
[LLVMdev] Extracting ILP from bytecode/*.ll
...nalyze -stats -instcounts <bytecode> I can get the total number of instructions but I want to extract instruction level parallelism . That is I want to know number of add instruction that can be executed in parallel, similarly for multiply ... This would give me an idea what is upper limit of adders ( and multipliers )should be there in my hardware. Any kind of help would be greatly appreciated. -Devesh
2020 Feb 10
2
starttls for some services only
...vecot_core_settings/#login-trusted-networks I do have login-trusted_networks set already. Along with the proxy protocol (haproxy_trusted_networks = lb-ip) I had to set login_trusted_networks to 0.0.0.0/0 actually because the proxy protocol tells dovecot the real clients' IP address and that IP adders is the one actually evaluated for login_trusted_networks. With the plain authentication being done inside the load balancer's TLS connection this is more or less obvious that this is needed in that case. But those settings don't change the pity: ssl=no is globally required to make the sta...
2018 Jul 24
2
Software pipeline using LLVM
Hi all, I want to generate assembly code using Swing Modulo Scheduling in LLVM for many ALU (May could be Adders, multilayer ......), I need some help how I can do that, which commend I run? Also if possible more information about the scheduling and the register location ......, and which pass responsible about that, and which LLVM version support Swing Modulo Scheduling. Thank you. Regards Moh ------...
2005 Jul 29
0
[LLVMdev] How to define complicated instruction in TableGen (Direct3D shader instruction)
...> '.xxyy' and '.zzzz' are swizzle masks, specify the component > permutation, simliar to the Intel SSE permutation instruction SHUFPD > > '_bias' and '_x2' are modifiers. they modify the value of source > operands and send the modified values to the adder. '_bias' = source - > 0.5, '_x2' = source * 2 > > '_sat' is an instruction modifier. when specified, it saturates (or > clamps) the instruction result to the range [0, 1] before writing to > the destination register. > > All of these 'writemask'...
2009 Dec 31
3
[OT] CAT5 IP-capable rackmount KVM units?
Rather off-topic, but I'm looking for IP-based KVMs (~16 ports) that can handle both PS/2 and USB hookups on the server side. All of the answers over at Slashdot are a few years out of date and it looks like prices on KVM head units have dropped a bit over the years. Some of the older units only worked with Windows, Internet Explorer and ActiveX. Others like the ATEN KH1516i supposedly
2011 Nov 16
1
Checking if the VM has been created
I'm a Libvirt newbie and I'd really appreciate it if someone could answer my doubts. I'm using Libvirt's Java API. My doubts: 1.Currently, I'm able to create a VM on Ubuntu 11.04 using Libvirt functions domainCreateLinux() and domainDefineXML(). Apart fromt the boolean return status of these operations and running the virsh list command, is there any way to SSH in (login) to
2008 Aug 13
4
[LLVMdev] A case where llvm created different cfg for same code
> > Message: 4 > Date: Tue, 12 Aug 2008 13:23:52 -0700 > From: "Bill Wendling" <isanbard at gmail.com> > Subject: Re: [LLVMdev] A case where llvm created different cfg for > same code > To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Message-ID: > <16e5fdf90808121323g1ae2a2e3lb6c5bd62521df621 at mail.gmail.com> >
2007 Nov 15
5
What command to run all stories?
...ire'' from stories/all.rb:3 from stories/all.rb:2:in `each'' from stories/all.rb:2 The examples seem older than the version on David''s blog. Am I missing some parts from David''s blog? My directory looks like: stories/ |-- additions | |-- adder.rb | |-- addition | |-- addition.rb | `-- steps | `-- addition_steps.rb |-- all.rb `-- helper.rb If I run the story stand-alone, I get: ruby stories/additions/addition.rb Running 2 scenarios: Story: simple addition As an accountant I want to add numbers So that I can count bean...
2016 Jun 24
2
Suggestion / Help regarding new calling convention
...ed i = 0; i < RegMaskSize; ++i) RegMask[i] = RegMask[i] | CallPreservedMask[i]; } because RegUsageInfoCalculator.cpp marks register as preserved if MF's CC preserves it. But While optimizing for callee saved register we need to skip above code so that register save/restore code is adder around call site. Apart from that my hunch is that IPO inlining of static function also creates problem for this ( I have this feeling because some test case from test-suite fails when using -O > 0 ). I am still working on this. Please share your thoughts on this. Sincerely, - Vivek > -...
2016 Jul 13
7
RFC: SIMD math-function library
...of function overloading). 4) Create and document a public interface to the library. 5) Add support for targeting the library to LLVM's autovectorizer. 6) Work with the community to port the library to other architectures. Motivation: Recent CPUs and GPUs have vectorized FP multipliers and adders for improving throughput of FP computation. In order to extract the maximum computation power from processors with vectorized ALUs, the software has to be vectorized to use SIMD data structures. It is also preferred that conditional branches and scatter/gather memory access are eliminated as...