Search:

Type: Posts; User: sneakyimp

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. THANK YOU for this advice. I'm more interested in...

    THANK YOU for this advice. I'm more interested in learning the bigger picture here than just solving the specific problem. I have run the nm command on cblas_LINUX.so on my workstation (ubuntu 20,...
  2. cblas_dgemm works on workstation, undefined symbol: dgemm_ on virtual machine

    NOTE: I have also asked this question on stack overflow here but I'm not optimistic that community has the expertise to answer it.

    I'm trying to invoke a routine in a shared library from within a...
  3. I'm making slow progress but, being a terrible C...

    I'm making slow progress but, being a terrible C programmer, I could definitely use some guidance if anyone is feeling generous. I hope I'll be forgiven for seeking help on this topic so shamelessly....
  4. Thank you kindly for the helpful info, folks.

    Thank you kindly for the helpful info, folks.
  5. Sorry if my question seemed obtuse. Obviously,...

    Sorry if my question seemed obtuse. Obviously, casting involves some algorithm to convert one data type to another. I was unsure (and am still unsure) how this conversion is effected. I have changed...
  6. You have been tremendously helpful -- and I'm...

    You have been tremendously helpful -- and I'm making progress. My code is now encoding/decoding almost every data type. I'm still working on decoding arrays and objects. Definitely some kinks to work...
  7. Ah but you do! :D - I posted the github repo...

    Ah but you do! :D - I posted the github repo address. In the 'pushing my luck category,' the code is here.


    Yes, the bafflement hurts.

    I think I may have found the problem, though. I think it...
  8. Firstly, THANK YOU for your persistence in...

    Firstly, THANK YOU for your persistence in helping me. This is extremely helpful and valuable for me and I've been trying to push this project forward in spite of my fear of C coding for a long, long...
  9. I really appreciate your guidance, but I am...

    I really appreciate your guidance, but I am obviously still missing something here.


    I am baffled by the behavior as well. Let me see if I can better illustrate it. Option 1:


    double...
  10. My mistake about your code! I glanced at it...

    My mistake about your code! I glanced at it quickly and sort of mistakenly thought you might be assigning odd/2 to some counting var. And yes I use 8 sometimes when I should refer to...
  11. Oh my thank you for this correction.

    Oh my thank you for this correction.
  12. OK so trying to move my buf_len and buf_cursors...

    OK so trying to move my buf_len and buf_cursors to size_t results in some really weird behavior:


    *buf_cursor=20; // set this to high value to force error

    size_t last_byte_read =...
  13. Thanks for your helpful comments and code. I...

    Thanks for your helpful comments and code. I should definitely check buf_len. I also forgot to increase buf_cursor.


    Any particular reason? I like your code, but I'm guessing it assumes...
  14. Good advice! I have been working on other things....

    Good advice! I have been working on other things.


    I've seen the inline keyword in use and expect I could use it in this case. What does it do exactly?


    I agree wholeheartedly. "Don't let the...
  15. Um, look more closely? The function I'm trying to...

    Um, look more closely? The function I'm trying to write is empty. The function I posted is converting in the wrong direction.


    I've been struggling at this awhile. I was getting a result of 0.000...
  16. The macro would be used in numerous functions...

    The macro would be used in numerous functions within my php extension. This byte-reading function is not a userland function but one I have defined in my module so that the various other functions...
  17. how to convert 8 bytes in a char buffer into a double?

    I've got a function that receives a char buffer, the buffer length, and a cursor. This function needs to extract the first 8 bytes of the buffer, increment the cursor, and return a double. If I...
  18. Strictly speaking, I don't. I'm currently using a...

    Strictly speaking, I don't. I'm currently using a function and it seems to do the trick. I guess I was thinking that a macro might avoid use of the stack and improve performance?

    EDIT: it also...
  19. Replies
    11
    Views
    1,596

    Yes but if you already have a local repo that was...

    Yes but if you already have a local repo that was created before the repo on github, you have to figure out how to take your local repo's remote and set it to the git hub repo -- or you have to...
  20. macro to read byte from string buffer, increment cursor value, and throw error

    My C skills are extremely rusty and I have little experience writing macros.

    I'm working on a PECL extension for PHP. My pseudo code has a function that checks to see if any more bytes are...
  21. Replies
    11
    Views
    1,596

    I like this idea a lot, but have not yet caught...

    I like this idea a lot, but have not yet caught the hang of remotes and such. Also, I sometimes want to work privately and avoid posting my embarrassing changes to something as public as github.
  22. Replies
    11
    Views
    1,596

    As of yet there is no git repo at all. ...

    As of yet there is no git repo at all.


    Understood, but thank you for the clarification.


    This is along the lines I'm thinking, although I was imagining I would create a repo on github,...
  23. Replies
    11
    Views
    1,596

    Hi laserlight! I forget that you are also here....

    Hi laserlight! I forget that you are also here. Hope you'll forgive me for also posting this on PHPB.

    I found a couple of .gitignore files in these PECL projects on php.net. Any comments you might...
  24. Replies
    11
    Views
    1,596

    want to clean up project to post on github

    I've been working on a PHP module (i.e., written in C to extend PHP). It's been a rather torturous process but I finally have some code that seems to be working reasonably well. I want to post it on...
  25. I searched some more and had some luck with the...

    I searched some more and had some luck with the source of the php function get_object_vars(). However, I am still pretty confused. PHP source is *full* of macros and has basically no comments to...
Results 1 to 25 of 34
Page 1 of 2 1 2