simd.h (950B) - Raw
1 /* Copyright (c) 2014 Apple, Inc. All rights reserved. 2 * 3 * This header provides small vector (simd) and matrix types, and basic 4 * arithmetic and mathematical functions for them. The vast majority of these 5 * operations are implemented as header inlines, as they can be performed 6 * using just a few instructions on most processors. 7 * 8 * These functions are broken into two groups; vector and matrix. This header 9 * includes all of them, but these may also be included separately. Consult 10 * these two headers for detailed documentation of what types and operations 11 * are available. 12 */ 13 14 #ifndef __SIMD_HEADER__ 15 #define __SIMD_HEADER__ 16 17 #if __has_include(<realtime_safety/realtime_safety.h>) 18 #include <realtime_safety/realtime_safety.h> 19 REALTIME_SAFE_BEGIN 20 #endif 21 22 #include <simd/vector.h> 23 #include <simd/matrix.h> 24 #include <simd/quaternion.h> 25 26 #if __has_include(<realtime_safety/realtime_safety.h>) 27 REALTIME_SAFE_END 28 #endif 29 30 #endif