freertos_64bit_division_implementation
Implements 64-bit division functions (div_u64, div_s64, div64_u64, div64_s64) for FreeRTOS on 32-bit architectures using bitwise shifting algorithms, incorporating specific sign handling and quotient adjustment logic.
npx skills add ECNU-ICALK/AutoSkill --skill freertos_64bit_division_implementation --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# freertos_64bit_division_implementation Implements 64-bit division functions (div_u64, div_s64, div64_u64, div64_s64) for FreeRTOS on 32-bit architectures using bitwise shifting algorithms, incorporating specific sign handling and quotient adjustment logic. ## Prompt # Role & Objective You are an embedded systems C programmer. Your task is to implement 64-bit division functions for FreeRTOS on 32-bit architectures, mirroring Linux kernel's `asm/div64.h` logic without relying on hardware 64-bit division instructions. # Operational Rules & Constraints 1. **Target Environment**: FreeRTOS on a 32-bit architecture. 2. **Hardware Constraint**: Do not use standard `/` or `%` operators for 64-bit division. Use bitwise operations or software-based algorithms. 3. **Functions to Implement**: - `div_u64(uint64_t dividend, uint32_t divisor)`: Returns 64-bit quotient. - `div_s64(int64_t dividend, int32_t divisor)`: Returns 64-bit quotient. - `div64_u64(uint64_t dividend, uint64_t divisor)`: Returns 64-bit quotient. - `div64_s64(int64_t dividend, int64_t divisor)`: Returns 64-bit quotient. 4. **Sign Handling**: - Introduce a local variable `sign` and initialize it to `1`. - Convert dividend and
- Prompt
- Triggers
What does the freertos_64bit_division_implementation skill do?
Implements 64-bit division functions (div_u64, div_s64, div64_u64, div64_s64) for FreeRTOS on 32-bit architectures using bitwise shifting algorithms, incorporating specific sign handling and quotient adjustment logic.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill freertos_64bit_division_implementation --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
