@@ -51,17 +51,17 @@ extern "C" {
5151* 
5252* 1. `pico_float_pico_vfp` - this library leaves basic C single-precision floating point operations to the compiler 
5353* which can use inlined VFP (Arm FPU) code. Custom optimized versions of trigonometric and scientific functions are provided. 
54- * no  DCP (RP2350 Double co-processor) instructions are used. 
54+ * No  DCP (RP2350 Double co-processor) instructions are used. 
5555* 2. `pico_float_pico_dcp` - this library prevents the compiler injecting inlined VFP code, and also implements 
56- * all single-precision floating point operations in optimized DCP or M33 code. This option is not as fast 
57- * as pico_float_pico_vfp, however allows floating point operations without enabling the floating point co-processor 
56+ * all single-precision floating point operations in optimized DCP or M33 code. This option is not quite  as fast 
57+ * as pico_float_pico_vfp, however it  allows floating point operations without enabling the floating point co-processor 
5858* on the CPU; this can be beneficial in certain circumstances, e.g. where leaving stack in tasks or interrupts 
5959* for the floating point state is undesirable. 
6060* 
61- * Note: `pico_float_pico` is equivalent ot `pico_flot_pico_vfp ` on RP2350, as this is the most sensible default 
61+ * Note: `pico_float_pico` is equivalent to `pico_float_pico_vfp ` on RP2350, as this is the most sensible default 
6262* \endif 
6363* 
64- * On Arm, (replacement) optimized implementations are provided for the following compiler built-ins when  
64+ * On Arm, (replacement) optimized implementations are provided for the following compiler built-ins 
6565* and math library functions when using `_pico` variants of `pico_float`: 
6666* 
6767* - basic arithmetic: (except `pico_float_pico_vfp`) 
@@ -104,13 +104,13 @@ extern "C" {
104104* 
105105*     int2float, uint2float, int642float, uint642float 
106106* 
107- *     note: on `pico_float_vfp ` the 32-bit functions are also provided as C macros since they map to inline VFP code 
107+ *     note: on `pico_float_pico_vfp ` the 32-bit functions are also provided as C macros since they map to inline VFP code 
108108* 
109109*   - (u)float -> int (round towards zero): 
110110* 
111111*     float2int_z, float2uint_z, float2int64_z, float2uint64_z 
112112* 
113- *     note: on `pico_float_vfp ` the 32-bit functions are also provided as C macros since they map to inline VFP code 
113+ *     note: on `pico_float_pico_vfp ` the 32-bit functions are also provided as C macros since they map to inline VFP code 
114114* 
115115*   - (u)float -> int (round towards -infinity): 
116116* 
@@ -126,17 +126,17 @@ extern "C" {
126126* 
127127*       float2fix_z, float2ufix_z, float2fix64_z, float2ufix64_z 
128128* 
129- *     note: on `pico_float_vfp ` the 32-bit functions are also provided as C macros since they can map to inline VFP code 
129+ *     note: on `pico_float_pico_vfp ` the 32-bit functions are also provided as C macros since they can map to inline VFP code 
130130*     when the number of fractional bits is a compile time constant between 1 and 32 
131131* 
132132*   - float -> (u)fix (round towards -infinity): 
133133* 
134134*       float2fix, float2ufix, float2fix64, float2ufix64 
135135* 
136- *     note: on `pico_float_vfp ` the 32-bit functions are also provided as C macros since they can map to inline VFP code 
136+ *     note: on `pico_float_pico_vfp ` the 32-bit functions are also provided as C macros since they can map to inline VFP code 
137137*     when the number of fractional bits is a compile time constant between 1 and 32 
138138* 
139- * - Even faster methods  versions of divide and square-root that do not round correctly: (`pico_float_pico_dcp` only) 
139+ * - Even faster versions of divide and square-root functions  that do not round correctly: (`pico_float_pico_dcp` only) 
140140* 
141141*   fdiv_fast, sqrtf_fast 
142142* 
@@ -276,12 +276,12 @@ uint64_t float2ufix64(float f, int e);
276276#define  _float2ufix_inline (f , e ) _float2ufix_z_inline ((f ), (e ))
277277#endif 
278278
279- #if  LIB_PIC_FLOAT_PICO_VFP 
279+ #if  LIB_PICO_FLOAT_PICO_VFP 
280280// may as well provide inline macros for VFP 
281- #define  int2float (int32_t   i ) ((float)(i))
282- #define  uint2float (uint32_t   i ) ((float)(i))
283- #define  float2int_z (float   f ) ((int32_t)(f))
284- #define  float2uint_z (float   f ) ((uint32_t)(f))
281+ #define  int2float (i ) ((float)(int32_t )(i))
282+ #define  uint2float (i ) ((float)(uint32_t )(i))
283+ #define  float2int_z (f ) ((int32_t)(f))
284+ #define  float2uint_z (f ) ((uint32_t)(f))
285285#endif 
286286
287287#endif 
0 commit comments