Search:

Type: Posts; User: zxcv

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    3,959

    insert map into map?

    Im having problems inserting a map into a map, I cant manage to access the actual element and call insert() on it.

    Thank you



    #include <map>
    using namespace std;

    int main() {
  2. Replies
    5
    Views
    5,354

    I decided I didn't really like Wikipedia's idea...

    I decided I didn't really like Wikipedia's idea so I attempted something more straightforward. It just seemed overkill.

    Still doesn't work unfortunately. The list never seems to change order.

    ...
  3. Replies
    5
    Views
    5,354

    merge sort over (doubly) linked lists

    I'm having some trouble with my merge sort routines.

    I tried to implement some pseudo-code I found on Wikipedia thats supposed to be optimized for tape drives(since tape drives have the same...
  4. Replies
    2
    Views
    1,656

    Doh! Looks like that was it. Totally missed...

    Doh!

    Looks like that was it. Totally missed that part.

    Thanks alot
  5. Replies
    2
    Views
    1,656

    mmap assertion failing

    Hi, I'm using mmap for the first time in a program where I'm trying to benchmark different data structures. I'm checking the return value, through a assert, and its failing. I dont know why

    Heres...
  6. Replies
    2
    Views
    1,197

    inheritance and virtual methods

    I'm having some problems with these 2 concepts. Any Advice?

    Thanks

    My errors:


    eclared in class ‘expandedKey128’
    expandedKey.cpp:10: error: no ‘void expandedKey192::printKey()’ member...
  7. Replies
    1
    Views
    5,994

    parallel algorithms?

    Can anyone recommend some good books on parallel algorithms? I mean design, analysis, and computability kind of stuff, not something just on MPI or generic threads.

    Thanks
  8. Replies
    1
    Views
    5,321

    yacc: type clashes and useless nontermins

    Hi

    Im trying to write a simple compiler and I'm stuck at the parsing/yacc phase. I keep getting many of these errors and warnings:

    type clash on default action
    empty rule for typed...
  9. Thread: set testing code

    by zxcv
    Replies
    8
    Views
    1,893

    Im fairly sure means the inner product, so...

    Im fairly sure <A, B> means the inner product, so in this case just A*B.

    A and B are both in the GF(2^4) and change, so I made them variables in my code.

    Hope that helps
  10. Thread: set testing code

    by zxcv
    Replies
    8
    Views
    1,893

    Alright, hate to say it but I think I have a new...

    Alright, hate to say it but I think I have a new and hopefully not related problem. This time I think its related to my FC function.



    unsigned char gf_mult(unsigned char a, unsigned char b) {
    ...
  11. Thread: set testing code

    by zxcv
    Replies
    8
    Views
    1,893

    Yes! That did it! Thanks. I never seem to...

    Yes! That did it!

    Thanks. I never seem to catch one to things like that....
  12. Thread: set testing code

    by zxcv
    Replies
    8
    Views
    1,893

    Maybe a example would make this alittle more...

    Maybe a example would make this alittle more clear. Im using this S-Box:



    unsigned char sbox4[16] = {0xC, 0x5, 0x6, 0xB, 0x9, 0x0, 0xA, 0xD, 0x3, 0xE, 0xF, 0x8, 0x4, 0x7, 0x1, 0x2};


    Let...
  13. Thread: set testing code

    by zxcv
    Replies
    8
    Views
    1,893

    set testing code

    I have a S-Box(lookup table) that I'm trying to test. The test involved creating a set (the details are very small and in the attachment, so its formated nicely) and checking its size. Since I'm...
  14. Replies
    9
    Views
    2,755

    After being utterly disgusted by it for awhile I...

    After being utterly disgusted by it for awhile I tried converting all my c libraries into c++ ones. That did the trick it seems.

    Very very weird...
  15. Replies
    9
    Views
    2,755

    func is a function pointer. Im not actually...

    func is a function pointer.

    Im not actually storing anything yet, that branch never runs....
  16. Replies
    9
    Views
    2,755

    Im not storing them, only a small percentage of...

    Im not storing them, only a small percentage of them.

    Plus I'm really just worried about the seg fault now, space I can worry about after.
  17. Replies
    9
    Views
    2,755

    next_permutation seg fault

    Hello. Im writing a program that will test *a lot* of permutations, only while using the STL's next_permutation function I seem to seg fault.

    Heres the code, where I left the while that does the...
  18. Replies
    2
    Views
    5,339

    Ok, nice idea. Ill have to play with that. I...

    Ok, nice idea. Ill have to play with that. I forgot that I could shift so easily.

    Anyone happen to see anything else? I still haven't made any progress towards this yet.

    Thanks!
  19. Replies
    2
    Views
    5,339

    bit level permutation function

    Im trying to write a bit level permutation function for a block cipher, only the catch is you go from working with 4 bit unsigned integers, to one unsigned 64 bit integer.

    So the permutation is...
  20. Replies
    8
    Views
    9,033

    mmap-ing files > 4GB?

    Hello

    Odd question, is it possible to safely and sanely mmap a file (with a 2.6 kernel, if it matters) that is greater than 4 gigs, on a 32bit machine?

    I'm toying around with some whole...
  21. Replies
    3
    Views
    2,255

    intel compilers for college students

    Hello

    I'm wondering if there are any free ways for college students to get the Intel Compiler Suite or some of its components. I know with MS theres the Academy Alliance along with something else...
  22. Thread: fast XORing chars

    by zxcv
    Replies
    9
    Views
    2,398

    Hmm, not sure I understand how this could...

    Hmm, not sure I understand how this could possibly be slower.

    I don't know much about it, but in assembly you don't have 'types', you just have different operations and these operations have...
  23. Thread: fast XORing chars

    by zxcv
    Replies
    9
    Views
    2,398

    hmmm, never would of caught that. But now my...

    hmmm, never would of caught that. But now my dereferencing gives me errors now. Not sure how I should attack this now
  24. Thread: fast XORing chars

    by zxcv
    Replies
    9
    Views
    2,398

    fast XORing chars

    Im working on a project where speed is a major concern and where I'm also working on alot of 4x4 arrays of chars.

    I would like to XOR these chars by grouping them together 4 at a time(by...
  25. Replies
    1
    Views
    2,758

    Well I know one thing I did wrong now, cant...

    Well I know one thing I did wrong now, cant recover after a FPE so should of ended the program there.

    Doesnt explain the looping though
Results 1 to 25 of 57
Page 1 of 3 1 2 3