Search Results - JustLinux Forums


Search:

Type: Posts; User: Strogian

Search: Search took 0.03 seconds.

  1. Replies
    278
    Views
    669,175

    How about without an if statement?

    How about without an if statement?
  2. Replies
    278
    Views
    669,175

    Wow...you sure about that? All the time I've...

    Wow...you sure about that? All the time I've assumed that a switch statement used some sort of jump table array thing. (That was my reason why you couldn't do "real" tests in there, other than "is...
  3. Replies
    278
    Views
    669,175

    Oh, wow. I'd never thought of that. Hey, if you...

    Oh, wow. I'd never thought of that. Hey, if you can do it, go ahead! :)
  4. Replies
    278
    Views
    669,175

    Well, I want functions that replace the ++ and >>...

    Well, I want functions that replace the ++ and >> operations, so naturally you shouldn't use ++ or >> in the function. :) (<< and -- are also no-good, but I don't think they'd help you anyway :))
  5. Replies
    278
    Views
    669,175

    Heh, that makes me think of one.. Come up with...

    Heh, that makes me think of one.. Come up with bitwise-shift and increment (or decrement) functions, using only the bitwise operations. (that doesn't include >> :))
  6. Replies
    278
    Views
    669,175

    You have no idea how much pain this problem gave...

    You have no idea how much pain this problem gave me. :D

    x = (a+b)(c+d)
    y = ac
    z = bd

    Answer = y-z + (x-y-z)i
  7. Replies
    278
    Views
    669,175

    And here's the addition one: (I assumed unsigned...

    And here's the addition one: (I assumed unsigned numbers, but negatives are designed to work seamlessly with an adder, right?)



    int fastadd(unsigned int a, unsigned int b)
    {
    int tmpa;

    ...
  8. Replies
    278
    Views
    669,175

    Ooh! Ooh! I got it! :D Well, here's what I...

    Ooh! Ooh! I got it! :D

    Well, here's what I got. From here, the program is probably simple. :)

    ax^2+bx+c -> x(ax+b) + c
    ax^3+bx^2+cx+d -> x(x(ax+b) + c) + d
    ...and so on...
  9. Replies
    278
    Views
    669,175

    I could do it if there weren't any coefficients,...

    I could do it if there weren't any coefficients, does that count? :p
  10. Replies
    278
    Views
    669,175

    What's a real multiplication? Can I use...

    What's a real multiplication? Can I use division? :D

    EDIT: Oh, I'm close. I know it. ;)

    EDIT: Ah nevermind, I got nothing. :D
Results 1 to 10 of 10