@@ -232,7 +232,7 @@ extern void poly1305_final_avx2(Poly1305* ctx, byte* mac);
232232 }
233233#endif /* !WOLFSSL_ARMASM && !WOLFSSL_RISCV_ASM */
234234/* if not 64 bit then use 32 bit */
235- #elif !defined(WOLFSSL_ARMASM) || !defined(__thumb__)
235+ #elif !defined(WOLFSSL_ARMASM)
236236
237237 static word32 U8TO32 (const byte * p )
238238 {
@@ -269,8 +269,7 @@ static WC_INLINE void u32tole64(const word32 inLe32, byte outLe64[8])
269269}
270270
271271
272- #if (!defined(WOLFSSL_ARMASM ) || (!defined(__aarch64__ ) && \
273- !defined(__thumb__ ))) && !defined(WOLFSSL_RISCV_ASM )
272+ #if !defined(WOLFSSL_ARMASM ) && !defined(WOLFSSL_RISCV_ASM )
274273/*
275274This local function operates on a message with a given number of bytes
276275with a given ctx pointer to a Poly1305 structure.
@@ -789,8 +788,7 @@ int wc_Poly1305Final(Poly1305* ctx, byte* mac)
789788
790789 return 0 ;
791790}
792- #endif /* (!WOLFSSL_ARMASM || (!__aarch64__ && !__thumb__)) &&
793- * !WOLFSSL_RISCV_ASM */
791+ #endif /* !WOLFSSL_ARMASM && !WOLFSSL_RISCV_ASM */
794792
795793
796794int wc_Poly1305Update (Poly1305 * ctx , const byte * m , word32 bytes )
@@ -885,8 +883,7 @@ int wc_Poly1305Update(Poly1305* ctx, const byte* m, word32 bytes)
885883 /* process full blocks */
886884 if (bytes >= POLY1305_BLOCK_SIZE ) {
887885 size_t want = ((size_t )bytes & ~((size_t )POLY1305_BLOCK_SIZE - 1 ));
888- #if (!defined(WOLFSSL_ARMASM ) || (!defined(__aarch64__ ) && \
889- !defined(__thumb__ ))) && !defined(WOLFSSL_RISCV_ASM )
886+ #if !defined(WOLFSSL_ARMASM ) && !defined(WOLFSSL_RISCV_ASM )
890887 int ret ;
891888 ret = poly1305_blocks (ctx , m , want );
892889 if (ret != 0 )
0 commit comments