yf13 commented on code in PR #12427:
URL: https://github.com/apache/nuttx/pull/12427#discussion_r1623300616


##########
sched/Kconfig:
##########
@@ -1937,3 +1937,14 @@ config GROUP_KILL_CHILDREN_TIMEOUT_MS
                > 0 means wait timeout
                = 0 means don't do kill signal
 
+config INITIAL_PID_LIMIT

Review Comment:
   @pkarashchenko have you ever used our `LOG2_CEIL()` and `LOG2_FLOOR()`?
   
   I got  5 for `LOG2_CEIL(16)` and 4 for `LOG2_FLOOR(16)`, so 16 becomes 32 
using above formula.
   
   ```
   nx_start: 15 ceil=3 floor=3
   nx_start: 16 ceil=5 floor=4
   ```
   
   But with Python3, I got:
   
   ```
   >>> math.ceil(math.log2(15)), math.floor(math.log2(15))
   (4, 3)
   >>> math.ceil(math.log2(16)), math.floor(math.log2(16))
   (4, 4)
   ```
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to