1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-23 15:08:37 +00:00
hashcat/deps/sse2neon/tests
2025-05-30 21:57:05 +02:00
..
binding.cpp Added sse2neon to fix compile errors on macOS for custom hashcat codes on phc-winner-argon2 2025-05-30 21:57:05 +02:00
binding.h Added sse2neon to fix compile errors on macOS for custom hashcat codes on phc-winner-argon2 2025-05-30 21:57:05 +02:00
common.cpp Added sse2neon to fix compile errors on macOS for custom hashcat codes on phc-winner-argon2 2025-05-30 21:57:05 +02:00
common.h Added sse2neon to fix compile errors on macOS for custom hashcat codes on phc-winner-argon2 2025-05-30 21:57:05 +02:00
impl.cpp Added sse2neon to fix compile errors on macOS for custom hashcat codes on phc-winner-argon2 2025-05-30 21:57:05 +02:00
impl.h Added sse2neon to fix compile errors on macOS for custom hashcat codes on phc-winner-argon2 2025-05-30 21:57:05 +02:00
main.cpp Added sse2neon to fix compile errors on macOS for custom hashcat codes on phc-winner-argon2 2025-05-30 21:57:05 +02:00
README.md Added sse2neon to fix compile errors on macOS for custom hashcat codes on phc-winner-argon2 2025-05-30 21:57:05 +02:00

Test Suite for SSE2NEON

⚠️ Warning: The test suite is based on the little-endian architecture.

Add More Test Items

Once the conversion is implemented, the test can be added with the following steps:

  • File tests/impl.h

    Add the intrinsic under INTRIN_LIST macro. The naming convention should be mm_xxx. Place it in the correct classification with the alphabetical order. The classification can be referenced from Intel Intrinsics Guide.

  • File tests/impl.cpp

    result_t test_mm_xxx()
    {
        // The C implementation
        ...
    
        // The Neon implementation
        ret = _mm_xxx();
    
        // Compare the result of two implementations and return either
        // TEST_SUCCESS, TEST_FAIL, or TEST_UNIMPL
        ...
    }