mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-30 00:46:22 -04:00
Improve comments
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
5c5a6dece6
commit
92e8a88390
@ -672,7 +672,7 @@
|
|||||||
*/
|
*/
|
||||||
#if defined(__thumb__) && !defined(__thumb2__) // Thumb 1 (not Thumb 2) ISA
|
#if defined(__thumb__) && !defined(__thumb2__) // Thumb 1 (not Thumb 2) ISA
|
||||||
|
|
||||||
// Only supported by gcc, when optimisation is enabled; only option A works
|
// Only supported by gcc, when optimisation is enabled; only Thumb 1 codepath works
|
||||||
#if defined(__OPTIMIZE__) && !defined(__ARMCC_VERSION)
|
#if defined(__OPTIMIZE__) && !defined(__ARMCC_VERSION)
|
||||||
#define ARM_THUMB_1
|
#define ARM_THUMB_1
|
||||||
#endif
|
#endif
|
||||||
@ -680,24 +680,26 @@
|
|||||||
#elif defined(__thumb2__) // Thumb 2 ISA
|
#elif defined(__thumb2__) // Thumb 2 ISA
|
||||||
|
|
||||||
#if !defined(__ARMCC_VERSION) && !defined(__OPTIMIZE__)
|
#if !defined(__ARMCC_VERSION) && !defined(__OPTIMIZE__)
|
||||||
// gcc -O0: only option B builds
|
// gcc -O0: only V6+DSP codepath builds
|
||||||
#if (__ARM_ARCH >= 6) && defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)
|
#if (__ARM_ARCH >= 6) && defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)
|
||||||
#define ARM_V6_DSP
|
#define ARM_V6_DSP
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
// gcc with optimisation, or armclang: any option builds
|
// gcc with optimisation, or armclang: any codepath builds
|
||||||
#define ARM_V6_DSP_OR_THUMB_2
|
#define ARM_V6_DSP_OR_THUMB_2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(__arm__) // Arm ISA
|
#elif defined(__arm__) // Arm ISA
|
||||||
|
|
||||||
// any option builds. A does not seem to work; B is about 2x faster than C (under emulation).
|
// any option builds. Thumb 1 codepath does not seem to work.
|
||||||
#define ARM_V6_DSP_OR_THUMB_2
|
#define ARM_V6_DSP_OR_THUMB_2
|
||||||
|
|
||||||
#endif /* Arm ISA selection */
|
#endif /* Arm ISA selection */
|
||||||
|
|
||||||
#if defined(ARM_V6_DSP_OR_THUMB_2)
|
#if defined(ARM_V6_DSP_OR_THUMB_2)
|
||||||
// Prefer B, if we have the right features for it
|
// Prefer V6+DSP codepath, if we have the right features for it; otherwise
|
||||||
|
// fall back to generic Thumb 2 / Arm codepath
|
||||||
|
// V6+DSP codepath is about 2x faster than Thumb 2 (under emulation).
|
||||||
#if (__ARM_ARCH >= 6) && defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)
|
#if (__ARM_ARCH >= 6) && defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)
|
||||||
#define ARM_V6_DSP
|
#define ARM_V6_DSP
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user