8000 Is the code error? · Issue #73 · fixstars/libSGM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Is the code error? #73
Open
Open
@casm-ahb

Description

@casm-ahb

in utility.hpp line 446
template <>
device inline void store_uint8_vector<2u>(uint8_t *dest, const uint32_t *ptr){
uchar2 uint8x2;
uint8x2.x = static_cast<uint8_t>(ptr[0]);
uint8x2.y = static_cast<uint8_t>(ptr[0]);
store_as(dest, uint8x2);
}
should be right as following code
template <>
device inline void store_uint8_vector<2u>(uint8_t *dest, const uint32_t *ptr){
uchar2 uint8x2;
uint8x2.x = static_cast<uint8_t>(ptr[0]);
uint8x2.y = static_cast<uint8_t>(ptr[1]);
store_as(dest, uint8x2);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0