Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sg memcpy #3709

Closed
wants to merge 2 commits into from
Closed

Sg memcpy #3709

wants to merge 2 commits into from

Conversation

radsn23
Copy link

@radsn23 radsn23 commented Mar 15, 2017

Fix issue #3700
f269f25

Renamed ‘memcpy’ wrapper to sg_memcpy, changed ‘std::memcpy’ to
‘shogun::memcpy’ using sed.
@radsn23 radsn23 closed this Mar 15, 2017
@karlnapf
Copy link
Member

Pls dont open and close PRs, creates a lot of junk email. Thanks!

{
return std::memcpy(static_cast<void*>(dest), static_cast<const void*>(src), count);
return shogun::memcpy(static_cast<void*>(dest), static_cast<const void*>(src), count);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there. I'm afraid I didn't make the task clear enough :)

  • We want to rename this memcpy to sg_memcpy (which you did) that in turn calls std::memcpy just as before (i.e., don't make it call shogun::memcpy inside - that won't exist anymore once you rename it)
  • We want all existing memcpy uses in Shogun to use this newly added sg_memcpy instead.

See what I mean?

@radsn23 radsn23 deleted the sg_memcpy branch March 19, 2017 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants