Search:

Type: Posts; User: thickster

Search: Search took 0.01 seconds.

  1. Replies
    30
    Views
    3,415

    Though my statement will be controversial, there...

    Though my statement will be controversial, there is only one correct answer to this. Juicyfroot. The reason for this is in the following example of Microsoft C#. That's what Microsoft uses in...
  2. Replies
    4
    Views
    1,110

    A general outline on what to do....

    create an array of the same size to hold the new string (since we know its length
    will be <= the original (use strlen). Or you could just copy the characters in
    order back into the original...
  3. And the Cortex-M4 CAN do unaligned 32-bit accesses, so ....

    And just to sum things up ....

    After learning that my own Cortex-M4 processor actually DOES allow unaligned 32-bit accesses, I wrote a MUCH simpler procedure to do an alternative memcpy function...
  4. And so, for safety's sake, code similar to the following should be inserted ....

    To ensure this works for all cases of small copy lengths, insert the following code after the variable declarations:




    // This is necessary to avoid errors due to the careless...
  5. Yeah, my warning about not working for small copies is correct....

    It would be best to include some test for small copy sizes into this code. That way, it would work for all cases, so I was too quick to publish this code. The code assumes that the length will...
  6. Thanks for the interesting feedback on this...

    (Sorry if I didn't do this reply correctly. I'm a first-timer.)
  7. Sorry, I'm a lowly firmware engineer who uses...

    Sorry, I'm a lowly firmware engineer who uses only embedded microcontrollers. I'm offering this code quite humbly for other embedded programmers who might need a few extra usecs of speed in their...
  8. Fast memcpy() alternative for a 32-bit embedded processor (Posted just FYI and FWIW!)

    /******************************************************************************
    *
    * Function Name: manualCopy
    *
    * Description: Manually copies data from memory to memory. This is used by
    ...
Results 1 to 8 of 9