Skip to content

Commit 1504dfd

Browse files
committed
Apply editorial changes
1 parent 8960914 commit 1504dfd

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

include/twin_private.h

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
/*
1818
* Fixed-point type definitions
1919
*
20-
* "Qm.f" is a representation of a fixed-point type,
21-
* where "m" bits are used for the integer part,
22-
* "f" bits are used for the fractional part and 1 bit is used
23-
* for the sign part. The total number of used bits is 1+m+f.
20+
* "Qm.f" is a representation of a fixed-point type, where "m" bits are used
21+
* for the integer part, "f" bits are used for the fractional part, and 1 bit
22+
* is used for the sign. The total number of used bits is 1 + m + f.
2423
*
2524
* twin_sfixed_t - A fixed-point type in the Q11.4 format.
2625
*
@@ -37,14 +36,14 @@
3736
* Max 2147483647 8388607.99609
3837
* Min -2147483648 -8388608
3938
*
40-
* twin_gfixed_t - A fixed-point type in the Q1.6 format.
41-
* And used in Glyph coordinates.
39+
* twin_gfixed_t - A fixed-point type in the Q1.6 format, used in Glyph
40+
* coordinates.
4241
*
4342
* Hex Binary Decimal Actual
4443
* Max 0x7f 0111 1111 127 1.984375
4544
* Min 0x80 1000 0000 -128 -2
4645
*
47-
* All of the above tables are based on the two's complement.
46+
* All of the above tables are based on two's complement representation.
4847
*/
4948
typedef int16_t twin_sfixed_t;
5049
typedef int32_t twin_dfixed_t;
@@ -531,9 +530,6 @@ void _twin_button_init(twin_button_t *button,
531530
static inline int twin_clz(uint32_t v)
532531
{
533532
uint32_t leading_zero = 0;
534-
/* Search from LSB to MSB for first set bit.
535-
* Returns zero if no set bit is found.
536-
*/
537533
if (_BitScanReverse(&leading_zero, v))
538534
return 31 - leading_zero;
539535
return 32; /* undefined behavior */

0 commit comments

Comments
 (0)